@@ -21,13 +21,13 @@ import kotlin.jvm.optionals.getOrNull
21
21
class TranscriptionSegment
22
22
private constructor (
23
23
private val id: JsonField <Long >,
24
- private val avgLogprob: JsonField <Double >,
25
- private val compressionRatio: JsonField <Double >,
26
- private val end: JsonField <Double >,
27
- private val noSpeechProb: JsonField <Double >,
24
+ private val avgLogprob: JsonField <Float >,
25
+ private val compressionRatio: JsonField <Float >,
26
+ private val end: JsonField <Float >,
27
+ private val noSpeechProb: JsonField <Float >,
28
28
private val seek: JsonField <Long >,
29
- private val start: JsonField <Double >,
30
- private val temperature: JsonField <Double >,
29
+ private val start: JsonField <Float >,
30
+ private val temperature: JsonField <Float >,
31
31
private val text: JsonField <String >,
32
32
private val tokens: JsonField <List <Long >>,
33
33
private val additionalProperties: MutableMap <String , JsonValue >,
@@ -38,19 +38,19 @@ private constructor(
38
38
@JsonProperty(" id" ) @ExcludeMissing id: JsonField <Long > = JsonMissing .of(),
39
39
@JsonProperty(" avg_logprob" )
40
40
@ExcludeMissing
41
- avgLogprob: JsonField <Double > = JsonMissing .of(),
41
+ avgLogprob: JsonField <Float > = JsonMissing .of(),
42
42
@JsonProperty(" compression_ratio" )
43
43
@ExcludeMissing
44
- compressionRatio: JsonField <Double > = JsonMissing .of(),
45
- @JsonProperty(" end" ) @ExcludeMissing end: JsonField <Double > = JsonMissing .of(),
44
+ compressionRatio: JsonField <Float > = JsonMissing .of(),
45
+ @JsonProperty(" end" ) @ExcludeMissing end: JsonField <Float > = JsonMissing .of(),
46
46
@JsonProperty(" no_speech_prob" )
47
47
@ExcludeMissing
48
- noSpeechProb: JsonField <Double > = JsonMissing .of(),
48
+ noSpeechProb: JsonField <Float > = JsonMissing .of(),
49
49
@JsonProperty(" seek" ) @ExcludeMissing seek: JsonField <Long > = JsonMissing .of(),
50
- @JsonProperty(" start" ) @ExcludeMissing start: JsonField <Double > = JsonMissing .of(),
50
+ @JsonProperty(" start" ) @ExcludeMissing start: JsonField <Float > = JsonMissing .of(),
51
51
@JsonProperty(" temperature" )
52
52
@ExcludeMissing
53
- temperature: JsonField <Double > = JsonMissing .of(),
53
+ temperature: JsonField <Float > = JsonMissing .of(),
54
54
@JsonProperty(" text" ) @ExcludeMissing text: JsonField <String > = JsonMissing .of(),
55
55
@JsonProperty(" tokens" ) @ExcludeMissing tokens: JsonField <List <Long >> = JsonMissing .of(),
56
56
) : this (
@@ -81,7 +81,7 @@ private constructor(
81
81
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
82
82
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
83
83
*/
84
- fun avgLogprob (): Double = avgLogprob.getRequired(" avg_logprob" )
84
+ fun avgLogprob (): Float = avgLogprob.getRequired(" avg_logprob" )
85
85
86
86
/* *
87
87
* Compression ratio of the segment. If the value is greater than 2.4, consider the compression
@@ -90,15 +90,15 @@ private constructor(
90
90
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
91
91
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
92
92
*/
93
- fun compressionRatio (): Double = compressionRatio.getRequired(" compression_ratio" )
93
+ fun compressionRatio (): Float = compressionRatio.getRequired(" compression_ratio" )
94
94
95
95
/* *
96
96
* End time of the segment in seconds.
97
97
*
98
98
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
99
99
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
100
100
*/
101
- fun end (): Double = end.getRequired(" end" )
101
+ fun end (): Float = end.getRequired(" end" )
102
102
103
103
/* *
104
104
* Probability of no speech in the segment. If the value is higher than 1.0 and the
@@ -107,7 +107,7 @@ private constructor(
107
107
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
108
108
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
109
109
*/
110
- fun noSpeechProb (): Double = noSpeechProb.getRequired(" no_speech_prob" )
110
+ fun noSpeechProb (): Float = noSpeechProb.getRequired(" no_speech_prob" )
111
111
112
112
/* *
113
113
* Seek offset of the segment.
@@ -123,15 +123,15 @@ private constructor(
123
123
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
124
124
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
125
125
*/
126
- fun start (): Double = start.getRequired(" start" )
126
+ fun start (): Float = start.getRequired(" start" )
127
127
128
128
/* *
129
129
* Temperature parameter used for generating the segment.
130
130
*
131
131
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
132
132
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
133
133
*/
134
- fun temperature (): Double = temperature.getRequired(" temperature" )
134
+ fun temperature (): Float = temperature.getRequired(" temperature" )
135
135
136
136
/* *
137
137
* Text content of the segment.
@@ -161,7 +161,7 @@ private constructor(
161
161
*
162
162
* Unlike [avgLogprob], this method doesn't throw if the JSON field has an unexpected type.
163
163
*/
164
- @JsonProperty(" avg_logprob" ) @ExcludeMissing fun _avgLogprob (): JsonField <Double > = avgLogprob
164
+ @JsonProperty(" avg_logprob" ) @ExcludeMissing fun _avgLogprob (): JsonField <Float > = avgLogprob
165
165
166
166
/* *
167
167
* Returns the raw JSON value of [compressionRatio].
@@ -171,14 +171,14 @@ private constructor(
171
171
*/
172
172
@JsonProperty(" compression_ratio" )
173
173
@ExcludeMissing
174
- fun _compressionRatio (): JsonField <Double > = compressionRatio
174
+ fun _compressionRatio (): JsonField <Float > = compressionRatio
175
175
176
176
/* *
177
177
* Returns the raw JSON value of [end].
178
178
*
179
179
* Unlike [end], this method doesn't throw if the JSON field has an unexpected type.
180
180
*/
181
- @JsonProperty(" end" ) @ExcludeMissing fun _end (): JsonField <Double > = end
181
+ @JsonProperty(" end" ) @ExcludeMissing fun _end (): JsonField <Float > = end
182
182
183
183
/* *
184
184
* Returns the raw JSON value of [noSpeechProb].
@@ -187,7 +187,7 @@ private constructor(
187
187
*/
188
188
@JsonProperty(" no_speech_prob" )
189
189
@ExcludeMissing
190
- fun _noSpeechProb (): JsonField <Double > = noSpeechProb
190
+ fun _noSpeechProb (): JsonField <Float > = noSpeechProb
191
191
192
192
/* *
193
193
* Returns the raw JSON value of [seek].
@@ -201,14 +201,14 @@ private constructor(
201
201
*
202
202
* Unlike [start], this method doesn't throw if the JSON field has an unexpected type.
203
203
*/
204
- @JsonProperty(" start" ) @ExcludeMissing fun _start (): JsonField <Double > = start
204
+ @JsonProperty(" start" ) @ExcludeMissing fun _start (): JsonField <Float > = start
205
205
206
206
/* *
207
207
* Returns the raw JSON value of [temperature].
208
208
*
209
209
* Unlike [temperature], this method doesn't throw if the JSON field has an unexpected type.
210
210
*/
211
- @JsonProperty(" temperature" ) @ExcludeMissing fun _temperature (): JsonField <Double > = temperature
211
+ @JsonProperty(" temperature" ) @ExcludeMissing fun _temperature (): JsonField <Float > = temperature
212
212
213
213
/* *
214
214
* Returns the raw JSON value of [text].
@@ -262,13 +262,13 @@ private constructor(
262
262
class Builder internal constructor() {
263
263
264
264
private var id: JsonField <Long >? = null
265
- private var avgLogprob: JsonField <Double >? = null
266
- private var compressionRatio: JsonField <Double >? = null
267
- private var end: JsonField <Double >? = null
268
- private var noSpeechProb: JsonField <Double >? = null
265
+ private var avgLogprob: JsonField <Float >? = null
266
+ private var compressionRatio: JsonField <Float >? = null
267
+ private var end: JsonField <Float >? = null
268
+ private var noSpeechProb: JsonField <Float >? = null
269
269
private var seek: JsonField <Long >? = null
270
- private var start: JsonField <Double >? = null
271
- private var temperature: JsonField <Double >? = null
270
+ private var start: JsonField <Float >? = null
271
+ private var temperature: JsonField <Float >? = null
272
272
private var text: JsonField <String >? = null
273
273
private var tokens: JsonField <MutableList <Long >>? = null
274
274
private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
@@ -303,60 +303,60 @@ private constructor(
303
303
* Average logprob of the segment. If the value is lower than -1, consider the logprobs
304
304
* failed.
305
305
*/
306
- fun avgLogprob (avgLogprob : Double ) = avgLogprob(JsonField .of(avgLogprob))
306
+ fun avgLogprob (avgLogprob : Float ) = avgLogprob(JsonField .of(avgLogprob))
307
307
308
308
/* *
309
309
* Sets [Builder.avgLogprob] to an arbitrary JSON value.
310
310
*
311
- * You should usually call [Builder.avgLogprob] with a well-typed [Double ] value instead.
311
+ * You should usually call [Builder.avgLogprob] with a well-typed [Float ] value instead.
312
312
* This method is primarily for setting the field to an undocumented or not yet supported
313
313
* value.
314
314
*/
315
- fun avgLogprob (avgLogprob : JsonField <Double >) = apply { this .avgLogprob = avgLogprob }
315
+ fun avgLogprob (avgLogprob : JsonField <Float >) = apply { this .avgLogprob = avgLogprob }
316
316
317
317
/* *
318
318
* Compression ratio of the segment. If the value is greater than 2.4, consider the
319
319
* compression failed.
320
320
*/
321
- fun compressionRatio (compressionRatio : Double ) =
321
+ fun compressionRatio (compressionRatio : Float ) =
322
322
compressionRatio(JsonField .of(compressionRatio))
323
323
324
324
/* *
325
325
* Sets [Builder.compressionRatio] to an arbitrary JSON value.
326
326
*
327
- * You should usually call [Builder.compressionRatio] with a well-typed [Double ] value
327
+ * You should usually call [Builder.compressionRatio] with a well-typed [Float ] value
328
328
* instead. This method is primarily for setting the field to an undocumented or not yet
329
329
* supported value.
330
330
*/
331
- fun compressionRatio (compressionRatio : JsonField <Double >) = apply {
331
+ fun compressionRatio (compressionRatio : JsonField <Float >) = apply {
332
332
this .compressionRatio = compressionRatio
333
333
}
334
334
335
335
/* * End time of the segment in seconds. */
336
- fun end (end : Double ) = end(JsonField .of(end))
336
+ fun end (end : Float ) = end(JsonField .of(end))
337
337
338
338
/* *
339
339
* Sets [Builder.end] to an arbitrary JSON value.
340
340
*
341
- * You should usually call [Builder.end] with a well-typed [Double ] value instead. This
341
+ * You should usually call [Builder.end] with a well-typed [Float ] value instead. This
342
342
* method is primarily for setting the field to an undocumented or not yet supported value.
343
343
*/
344
- fun end (end : JsonField <Double >) = apply { this .end = end }
344
+ fun end (end : JsonField <Float >) = apply { this .end = end }
345
345
346
346
/* *
347
347
* Probability of no speech in the segment. If the value is higher than 1.0 and the
348
348
* `avg_logprob` is below -1, consider this segment silent.
349
349
*/
350
- fun noSpeechProb (noSpeechProb : Double ) = noSpeechProb(JsonField .of(noSpeechProb))
350
+ fun noSpeechProb (noSpeechProb : Float ) = noSpeechProb(JsonField .of(noSpeechProb))
351
351
352
352
/* *
353
353
* Sets [Builder.noSpeechProb] to an arbitrary JSON value.
354
354
*
355
- * You should usually call [Builder.noSpeechProb] with a well-typed [Double ] value instead.
355
+ * You should usually call [Builder.noSpeechProb] with a well-typed [Float ] value instead.
356
356
* This method is primarily for setting the field to an undocumented or not yet supported
357
357
* value.
358
358
*/
359
- fun noSpeechProb (noSpeechProb : JsonField <Double >) = apply {
359
+ fun noSpeechProb (noSpeechProb : JsonField <Float >) = apply {
360
360
this .noSpeechProb = noSpeechProb
361
361
}
362
362
@@ -372,27 +372,27 @@ private constructor(
372
372
fun seek (seek : JsonField <Long >) = apply { this .seek = seek }
373
373
374
374
/* * Start time of the segment in seconds. */
375
- fun start (start : Double ) = start(JsonField .of(start))
375
+ fun start (start : Float ) = start(JsonField .of(start))
376
376
377
377
/* *
378
378
* Sets [Builder.start] to an arbitrary JSON value.
379
379
*
380
- * You should usually call [Builder.start] with a well-typed [Double ] value instead. This
380
+ * You should usually call [Builder.start] with a well-typed [Float ] value instead. This
381
381
* method is primarily for setting the field to an undocumented or not yet supported value.
382
382
*/
383
- fun start (start : JsonField <Double >) = apply { this .start = start }
383
+ fun start (start : JsonField <Float >) = apply { this .start = start }
384
384
385
385
/* * Temperature parameter used for generating the segment. */
386
- fun temperature (temperature : Double ) = temperature(JsonField .of(temperature))
386
+ fun temperature (temperature : Float ) = temperature(JsonField .of(temperature))
387
387
388
388
/* *
389
389
* Sets [Builder.temperature] to an arbitrary JSON value.
390
390
*
391
- * You should usually call [Builder.temperature] with a well-typed [Double ] value instead.
391
+ * You should usually call [Builder.temperature] with a well-typed [Float ] value instead.
392
392
* This method is primarily for setting the field to an undocumented or not yet supported
393
393
* value.
394
394
*/
395
- fun temperature (temperature : JsonField <Double >) = apply { this .temperature = temperature }
395
+ fun temperature (temperature : JsonField <Float >) = apply { this .temperature = temperature }
396
396
397
397
/* * Text content of the segment. */
398
398
fun text (text : String ) = text(JsonField .of(text))
0 commit comments