1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
3
import { APIResource } from '../../resource' ;
4
- import * as AudioAPI from './audio' ;
5
4
import * as SpeechAPI from './speech' ;
5
+ import { Speech , SpeechCreateParams , SpeechModel } from './speech' ;
6
6
import * as TranscriptionsAPI from './transcriptions' ;
7
+ import {
8
+ Transcription ,
9
+ TranscriptionCreateParams ,
10
+ TranscriptionCreateResponse ,
11
+ TranscriptionSegment ,
12
+ TranscriptionVerbose ,
13
+ TranscriptionWord ,
14
+ Transcriptions ,
15
+ } from './transcriptions' ;
7
16
import * as TranslationsAPI from './translations' ;
17
+ import {
18
+ Translation ,
19
+ TranslationCreateParams ,
20
+ TranslationCreateResponse ,
21
+ TranslationVerbose ,
22
+ Translations ,
23
+ } from './translations' ;
8
24
9
25
export class Audio extends APIResource {
10
26
transcriptions : TranscriptionsAPI . Transcriptions = new TranscriptionsAPI . Transcriptions ( this . _client ) ;
@@ -20,30 +36,30 @@ export type AudioModel = 'whisper-1';
20
36
*/
21
37
export type AudioResponseFormat = 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt' ;
22
38
23
- export namespace Audio {
24
- export import AudioModel = AudioAPI . AudioModel ;
25
- export import AudioResponseFormat = AudioAPI . AudioResponseFormat ;
26
- export import Transcriptions = TranscriptionsAPI . Transcriptions ;
27
- export import Transcription = TranscriptionsAPI . Transcription ;
28
- export import TranscriptionSegment = TranscriptionsAPI . TranscriptionSegment ;
29
- export import TranscriptionVerbose = TranscriptionsAPI . TranscriptionVerbose ;
30
- export import TranscriptionWord = TranscriptionsAPI . TranscriptionWord ;
31
- export import TranscriptionCreateResponse = TranscriptionsAPI . TranscriptionCreateResponse ;
32
- export type TranscriptionCreateParams <
33
- ResponseFormat extends AudioAPI . AudioResponseFormat | undefined =
34
- | AudioAPI . AudioResponseFormat
35
- | undefined ,
36
- > = TranscriptionsAPI . TranscriptionCreateParams < ResponseFormat > ;
37
- export import Translations = TranslationsAPI . Translations ;
38
- export import Translation = TranslationsAPI . Translation ;
39
- export import TranslationVerbose = TranslationsAPI . TranslationVerbose ;
40
- export import TranslationCreateResponse = TranslationsAPI . TranslationCreateResponse ;
41
- export type TranslationCreateParams <
42
- ResponseFormat extends AudioAPI . AudioResponseFormat | undefined =
43
- | AudioAPI . AudioResponseFormat
44
- | undefined ,
45
- > = TranslationsAPI . TranslationCreateParams < ResponseFormat > ;
46
- export import Speech = SpeechAPI . Speech ;
47
- export import SpeechModel = SpeechAPI . SpeechModel ;
48
- export import SpeechCreateParams = SpeechAPI . SpeechCreateParams ;
39
+ Audio . Transcriptions = Transcriptions ;
40
+ Audio . Translations = Translations ;
41
+ Audio . Speech = Speech ;
42
+
43
+ export declare namespace Audio {
44
+ export { type AudioModel as AudioModel , type AudioResponseFormat as AudioResponseFormat } ;
45
+
46
+ export {
47
+ Transcriptions as Transcriptions ,
48
+ type Transcription as Transcription ,
49
+ type TranscriptionSegment as TranscriptionSegment ,
50
+ type TranscriptionVerbose as TranscriptionVerbose ,
51
+ type TranscriptionWord as TranscriptionWord ,
52
+ type TranscriptionCreateResponse as TranscriptionCreateResponse ,
53
+ type TranscriptionCreateParams as TranscriptionCreateParams ,
54
+ } ;
55
+
56
+ export {
57
+ Translations as Translations ,
58
+ type Translation as Translation ,
59
+ type TranslationVerbose as TranslationVerbose ,
60
+ type TranslationCreateResponse as TranslationCreateResponse ,
61
+ type TranslationCreateParams as TranslationCreateParams ,
62
+ } ;
63
+
64
+ export { Speech as Speech , type SpeechModel as SpeechModel , type SpeechCreateParams as SpeechCreateParams } ;
49
65
}
0 commit comments