@@ -7,8 +7,14 @@ import * as TranscriptionsAPI from './transcriptions';
7
7
import {
8
8
Transcription ,
9
9
TranscriptionCreateParams ,
10
+ TranscriptionCreateParamsNonStreaming ,
11
+ TranscriptionCreateParamsStreaming ,
10
12
TranscriptionCreateResponse ,
13
+ TranscriptionInclude ,
11
14
TranscriptionSegment ,
15
+ TranscriptionStreamEvent ,
16
+ TranscriptionTextDeltaEvent ,
17
+ TranscriptionTextDoneEvent ,
12
18
TranscriptionVerbose ,
13
19
TranscriptionWord ,
14
20
Transcriptions ,
@@ -28,11 +34,12 @@ export class Audio extends APIResource {
28
34
speech : SpeechAPI . Speech = new SpeechAPI . Speech ( this . _client ) ;
29
35
}
30
36
31
- export type AudioModel = 'whisper-1' ;
37
+ export type AudioModel = 'whisper-1' | 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe' ;
32
38
33
39
/**
34
40
* The format of the output, in one of these options: `json`, `text`, `srt`,
35
- * `verbose_json`, or `vtt`.
41
+ * `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`,
42
+ * the only supported format is `json`.
36
43
*/
37
44
export type AudioResponseFormat = 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt' ;
38
45
@@ -46,11 +53,17 @@ export declare namespace Audio {
46
53
export {
47
54
Transcriptions as Transcriptions ,
48
55
type Transcription as Transcription ,
56
+ type TranscriptionInclude as TranscriptionInclude ,
49
57
type TranscriptionSegment as TranscriptionSegment ,
58
+ type TranscriptionStreamEvent as TranscriptionStreamEvent ,
59
+ type TranscriptionTextDeltaEvent as TranscriptionTextDeltaEvent ,
60
+ type TranscriptionTextDoneEvent as TranscriptionTextDoneEvent ,
50
61
type TranscriptionVerbose as TranscriptionVerbose ,
51
62
type TranscriptionWord as TranscriptionWord ,
52
63
type TranscriptionCreateResponse as TranscriptionCreateResponse ,
53
64
type TranscriptionCreateParams as TranscriptionCreateParams ,
65
+ type TranscriptionCreateParamsNonStreaming as TranscriptionCreateParamsNonStreaming ,
66
+ type TranscriptionCreateParamsStreaming as TranscriptionCreateParamsStreaming ,
54
67
} ;
55
68
56
69
export {
0 commit comments