11// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
33import { APIResource } from '../../resource' ;
4- import * as AudioAPI from './audio' ;
54import * as SpeechAPI from './speech' ;
5+ import { Speech , SpeechCreateParams , SpeechModel } from './speech' ;
66import * as TranscriptionsAPI from './transcriptions' ;
7+ import {
8+ Transcription ,
9+ TranscriptionCreateParams ,
10+ TranscriptionCreateResponse ,
11+ TranscriptionSegment ,
12+ TranscriptionVerbose ,
13+ TranscriptionWord ,
14+ Transcriptions ,
15+ } from './transcriptions' ;
716import * as TranslationsAPI from './translations' ;
17+ import {
18+ Translation ,
19+ TranslationCreateParams ,
20+ TranslationCreateResponse ,
21+ TranslationVerbose ,
22+ Translations ,
23+ } from './translations' ;
824
925export class Audio extends APIResource {
1026 transcriptions : TranscriptionsAPI . Transcriptions = new TranscriptionsAPI . Transcriptions ( this . _client ) ;
@@ -20,22 +36,30 @@ export type AudioModel = 'whisper-1';
2036 */
2137export type AudioResponseFormat = 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt' ;
2238
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 import TranscriptionCreateParams = TranscriptionsAPI . TranscriptionCreateParams ;
33- export import Translations = TranslationsAPI . Translations ;
34- export import Translation = TranslationsAPI . Translation ;
35- export import TranslationVerbose = TranslationsAPI . TranslationVerbose ;
36- export import TranslationCreateResponse = TranslationsAPI . TranslationCreateResponse ;
37- export import TranslationCreateParams = TranslationsAPI . TranslationCreateParams ;
38- export import Speech = SpeechAPI . Speech ;
39- export import SpeechModel = SpeechAPI . SpeechModel ;
40- 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 } ;
4165}
0 commit comments