/
opt
/
canhelp
/
node_modules
/
openai
/
resources
/
audio
/
/opt/canhelp/node_modules/openai/resources/audio
mkdir
upload
Name
Size
Mode
Actions
audio.d.mts
3176
0644
edit
dl
rm
audio.d.mts.map
1707
0644
edit
dl
rm
audio.d.ts
3168
0644
edit
dl
rm
audio.d.ts.map
1706
0644
edit
dl
rm
audio.js
1177
0644
edit
dl
rm
audio.js.map
603
0644
edit
dl
rm
audio.mjs
891
0644
edit
dl
rm
audio.mjs.map
631
0644
edit
dl
rm
index.d.mts
884
0644
edit
dl
rm
index.d.mts.map
607
0644
edit
dl
rm
index.d.ts
879
0644
edit
dl
rm
index.d.ts.map
606
0644
edit
dl
rm
index.js
947
0644
edit
dl
rm
index.js.map
276
0644
edit
dl
rm
index.mjs
305
0644
edit
dl
rm
index.mjs.map
219
0644
edit
dl
rm
speech.d.mts
2963
0644
edit
dl
rm
speech.d.mts.map
1150
0644
edit
dl
rm
speech.d.ts
2959
0644
edit
dl
rm
speech.d.ts.map
1149
0644
edit
dl
rm
speech.js
1151
0644
edit
dl
rm
speech.js.map
497
0644
edit
dl
rm
speech.mjs
1010
0644
edit
dl
rm
speech.mjs.map
495
0644
edit
dl
rm
transcriptions.d.mts
24027
0644
edit
dl
rm
transcriptions.d.mts.map
7696
0644
edit
dl
rm
transcriptions.d.ts
24019
0644
edit
dl
rm
transcriptions.d.ts.map
7695
0644
edit
dl
rm
transcriptions.js
793
0644
edit
dl
rm
transcriptions.js.map
510
0644
edit
dl
rm
transcriptions.mjs
643
0644
edit
dl
rm
transcriptions.mjs.map
511
0644
edit
dl
rm
translations.d.mts
3406
0644
edit
dl
rm
translations.d.mts.map
1612
0644
edit
dl
rm
translations.d.ts
3399
0644
edit
dl
rm
translations.d.ts.map
1611
0644
edit
dl
rm
translations.js
694
0644
edit
dl
rm
translations.js.map
464
0644
edit
dl
rm
translations.mjs
550
0644
edit
dl
rm
translations.mjs.map
465
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/openai/resources/audio/speech.d.mts
(2963B)
import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; /** * Turn audio into text or text into audio. */ export declare class Speech extends APIResource { /** * Generates audio from the input text. * * Returns the audio file content, or a stream of audio events. * * @example * ```ts * const speech = await client.audio.speech.create({ * input: 'input', * model: 'string', * voice: 'string', * }); * * const content = await speech.blob(); * console.log(content); * ``` */ create(body: SpeechCreateParams, options?: RequestOptions): APIPromise<Response>; } export type SpeechModel = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts' | 'gpt-4o-mini-tts-2025-12-15'; export interface SpeechCreateParams { /** * The text to generate audio for. The maximum length is 4096 characters. */ input: string; /** * One of the available [TTS models](https://platform.openai.com/docs/models#tts): * `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`. */ model: (string & {}) | SpeechModel; /** * The voice to use when generating the audio. Supported built-in voices are * `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, * `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice * object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the * voices are available in the * [Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options). */ voice: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | SpeechCreateParams.ID; /** * Control the voice of your generated audio with additional instructions. Does not * work with `tts-1` or `tts-1-hd`. */ instructions?: string; /** * The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, * `wav`, and `pcm`. */ response_format?: 'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm'; /** * The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is * the default. */ speed?: number; /** * The format to stream the audio in. Supported formats are `sse` and `audio`. * `sse` is not supported for `tts-1` or `tts-1-hd`. */ stream_format?: 'sse' | 'audio'; } export declare namespace SpeechCreateParams { /** * Custom voice reference. */ interface ID { /** * The custom voice ID, e.g. `voice_1234`. */ id: string; } } export declare namespace Speech { export { type SpeechModel as SpeechModel, type SpeechCreateParams as SpeechCreateParams }; } //# sourceMappingURL=speech.d.mts.map
Save
cmd:
run