@@ -7,8 +7,7 @@ module Audio
7
7
#
8
8
# @see OpenAI::Resources::Audio::Transcriptions#create_streaming
9
9
class TranscriptionCreateParams < OpenAI ::Internal ::Type ::BaseModel
10
- # @!parse
11
- # extend OpenAI::Internal::Type::RequestParameters::Converter
10
+ extend OpenAI ::Internal ::Type ::RequestParameters ::Converter
12
11
include OpenAI ::Internal ::Type ::RequestParameters
13
12
14
13
# @!attribute file
@@ -26,7 +25,7 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
26
25
# @return [String, Symbol, OpenAI::Models::AudioModel]
27
26
required :model , union : -> { OpenAI ::Models ::Audio ::TranscriptionCreateParams ::Model }
28
27
29
- # @!attribute [r] include
28
+ # @!attribute include
30
29
# Additional information to include in the transcription response. `logprobs` will
31
30
# return the log probabilities of the tokens in the response to understand the
32
31
# model's confidence in the transcription. `logprobs` only works with
@@ -37,23 +36,15 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
37
36
optional :include ,
38
37
-> { OpenAI ::Internal ::Type ::ArrayOf [ enum : OpenAI ::Models ::Audio ::TranscriptionInclude ] }
39
38
40
- # @!parse
41
- # # @return [Array<Symbol, OpenAI::Models::Audio::TranscriptionInclude>]
42
- # attr_writer :include
43
-
44
- # @!attribute [r] language
39
+ # @!attribute language
45
40
# The language of the input audio. Supplying the input language in
46
41
# [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`)
47
42
# format will improve accuracy and latency.
48
43
#
49
44
# @return [String, nil]
50
45
optional :language , String
51
46
52
- # @!parse
53
- # # @return [String]
54
- # attr_writer :language
55
-
56
- # @!attribute [r] prompt
47
+ # @!attribute prompt
57
48
# An optional text to guide the model's style or continue a previous audio
58
49
# segment. The
59
50
# [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting)
@@ -62,23 +53,15 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
62
53
# @return [String, nil]
63
54
optional :prompt , String
64
55
65
- # @!parse
66
- # # @return [String]
67
- # attr_writer :prompt
68
-
69
- # @!attribute [r] response_format
56
+ # @!attribute response_format
70
57
# The format of the output, in one of these options: `json`, `text`, `srt`,
71
58
# `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`,
72
59
# the only supported format is `json`.
73
60
#
74
61
# @return [Symbol, OpenAI::Models::AudioResponseFormat, nil]
75
62
optional :response_format , enum : -> { OpenAI ::Models ::AudioResponseFormat }
76
63
77
- # @!parse
78
- # # @return [Symbol, OpenAI::Models::AudioResponseFormat]
79
- # attr_writer :response_format
80
-
81
- # @!attribute [r] temperature
64
+ # @!attribute temperature
82
65
# The sampling temperature, between 0 and 1. Higher values like 0.8 will make the
83
66
# output more random, while lower values like 0.2 will make it more focused and
84
67
# deterministic. If set to 0, the model will use
@@ -88,11 +71,7 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
88
71
# @return [Float, nil]
89
72
optional :temperature , Float
90
73
91
- # @!parse
92
- # # @return [Float]
93
- # attr_writer :temperature
94
-
95
- # @!attribute [r] timestamp_granularities
74
+ # @!attribute timestamp_granularities
96
75
# The timestamp granularities to populate for this transcription.
97
76
# `response_format` must be set `verbose_json` to use timestamp granularities.
98
77
# Either or both of these options are supported: `word`, or `segment`. Note: There
@@ -103,10 +82,6 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
103
82
optional :timestamp_granularities ,
104
83
-> { OpenAI ::Internal ::Type ::ArrayOf [ enum : OpenAI ::Models ::Audio ::TranscriptionCreateParams ::TimestampGranularity ] }
105
84
106
- # @!parse
107
- # # @return [Array<Symbol, OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity>]
108
- # attr_writer :timestamp_granularities
109
-
110
85
# @!method initialize(file:, model:, include: nil, language: nil, prompt: nil, response_format: nil, temperature: nil, timestamp_granularities: nil, request_options: {})
111
86
# @param file [Pathname, StringIO]
112
87
# @param model [String, Symbol, OpenAI::Models::AudioModel]
0 commit comments