client.tts.bytes({ ...params }) -> core.BinaryResponse
-
-
-
The easiest way to generate text-to-speech audio. Not suitable for latency-sensitive applications.
-
-
-
await client.tts.bytes({ transcript: "Hello, World!", voice: { id: "samantha" } });
-
-
-
request:
Respeecher.BytesGenerationRequest
-
requestOptions:
TtsClient.RequestOptions
-
-
client.tts.sse({ ...params }) -> core.Stream
-
-
-
Stream text-to-speech audio as JSONL (JSON lines) objects over HTTP. A less performant alternative to WebSockets, without text input streaming.
-
-
-
const response = await client.tts.sse({ transcript: "Hello, World!", voice: { id: "samantha" } }); for await (const item of response) { console.log(item); }
-
-
-
request:
Respeecher.StreamingGenerationRequest
-
requestOptions:
TtsClient.RequestOptions
-
-
client.voices.list() -> Respeecher.Voice[]
-
-
-
List of available voices with IDs and metadata.
-
-
-
await client.voices.list();
-
-
-
requestOptions:
VoicesClient.RequestOptions
-
-