phonic
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [ • 799 B
TypeScript
/**
* @example
* {
* text: "x"
* }
*/
export interface StreamTtsRequest {
/** The text to convert to speech. */
text: string;
/** The TTS model to use. */
model?: "merritt";
/** The speech speed. */
speed?: number;
/** The voice ID to use. */
voice_id?: string;
/** The audio format to stream. */
output_format?: StreamTtsRequest.OutputFormat;
}
export declare namespace StreamTtsRequest {
/** The audio format to stream. */
const OutputFormat: {
readonly Pcm44100: "pcm_44100";
readonly Pcm24000: "pcm_24000";
readonly Pcm16000: "pcm_16000";
readonly Pcm8000: "pcm_8000";
readonly Mulaw8000: "mulaw_8000";
};
type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
}