> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Synthesize Speech

> Send text, receive the complete audio file in a single HTTP response

You send text, the server generates the entire audio, and returns it in a single HTTP response. No streaming, no open connections — just one request and one response with the complete audio file.

Best for batch or offline work like audiobooks, voiceovers, and podcasts, or any workflow where you can wait for the full file before playback.

<Note>
  For real-time playback or low-latency scenarios, use the [Streaming API](/tts/synthesize-speech-streaming) or [WebSocket API](/tts/synthesize-speech-websocket). See the [latency best practices](/tts/best-practices/latency) for details.
</Note>

## Code Examples

<CardGroup cols={3}>
  <Card title="Node.js SDK" icon="npm" href="/tts/node-sdk#generateoptions">
    Use `generate()` from the `@inworld/tts` SDK — handles chunking, retries, and encoding automatically.
  </Card>

  <Card title="JavaScript" icon="js" href="https://github.com/inworld-ai/inworld-api-examples/blob/main/tts/js/example_tts.js">
    View our JavaScript implementation example
  </Card>

  <Card title="Python SDK" icon="python" href="/tts/python-sdk#generateoptions">
    Use `generate()` from the `inworld-tts` SDK — handles chunking, retries, and encoding automatically.
  </Card>
</CardGroup>

## API Reference

<Card title="Synthesize Speech" icon="code" href="/api-reference/ttsAPI/texttospeech/synthesize-speech">
  View the complete API specification
</Card>

## Next Steps

<CardGroup cols={3}>
  <Card title="Voice Cloning Best Practices" icon="circle-check" href="/tts/best-practices/voice-cloning">
    Learn best practices for producing high-quality voice clones.
  </Card>

  <Card title="Speech Generation Best Practices" icon="circle-check" href="/tts/best-practices/generating-speech">
    Learn best practices for synthesizing high-quality speech.
  </Card>

  <Card title="API Examples" icon="github" href="https://github.com/inworld-ai/inworld-api-examples/tree/main/tts">
    Explore Python and JavaScript code examples for TTS integration.
  </Card>
</CardGroup>
