/opt/canhelp/node_modules/openai/resources/audio
NameSizeModeActions
audio.d.mts31760644editdlrm
audio.d.mts.map17070644editdlrm
audio.d.ts31680644editdlrm
audio.d.ts.map17060644editdlrm
audio.js11770644editdlrm
audio.js.map6030644editdlrm
audio.mjs8910644editdlrm
audio.mjs.map6310644editdlrm
index.d.mts8840644editdlrm
index.d.mts.map6070644editdlrm
index.d.ts8790644editdlrm
index.d.ts.map6060644editdlrm
index.js9470644editdlrm
index.js.map2760644editdlrm
index.mjs3050644editdlrm
index.mjs.map2190644editdlrm
speech.d.mts29630644editdlrm
speech.d.mts.map11500644editdlrm
speech.d.ts29590644editdlrm
speech.d.ts.map11490644editdlrm
speech.js11510644editdlrm
speech.js.map4970644editdlrm
speech.mjs10100644editdlrm
speech.mjs.map4950644editdlrm
transcriptions.d.mts240270644editdlrm
transcriptions.d.mts.map76960644editdlrm
transcriptions.d.ts240190644editdlrm
transcriptions.d.ts.map76950644editdlrm
transcriptions.js7930644editdlrm
transcriptions.js.map5100644editdlrm
transcriptions.mjs6430644editdlrm
transcriptions.mjs.map5110644editdlrm
translations.d.mts34060644editdlrm
translations.d.mts.map16120644editdlrm
translations.d.ts33990644editdlrm
translations.d.ts.map16110644editdlrm
translations.js6940644editdlrm
translations.js.map4640644editdlrm
translations.mjs5500644editdlrm
translations.mjs.map4650644editdlrm
Edit: /opt/canhelp/node_modules/openai/resources/audio/speech.d.ts (2959B)
import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * 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; } 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.ts.map