Learning resourcesReviewed · Together AI

Together AI text-to-speech streaming guide

Together AI’s text-to-speech streaming guide helps developers add generated speech to applications, but streaming supports only raw PCM audio. It provides Python, TypeScript and cURL examples, describes audio and word-timing events, and shows separate non-streaming requests for raw audio bytes. Prices, measured latency and a complete playback implementation are absent.

Researched 24 Nov 2026

In short.

Together AI’s text-to-speech streaming guide is for developers building speech features, with raw PCM as the only supported streaming format. It describes receiving audio chunks over HTTP before generation finishes, using server-sent events with base64-encoded audio. The examples use canopylabs/orpheus-3b-0.1-ft and the tara voice. Developers still need to integrate playback and resolve omitted setup details; the streaming cURL example also omits settings that the SDK examples supply explicitly. Nothing was executed, and latency, audio quality, costs and usage rights are not established by this page.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete supplied page at [https://docs.together.ai/docs/inference/text-to-speech/streaming.md], including every code example, event example, the raw-only streaming notice, related-document links, documentation-index notice and Mintlify hosting attribution. The documentation index, overview, WebSocket documentation and Mintlify website are linked destinations whose contents are excluded. No code, API request or playback path was executed. Performance, compatibility, pricing, rights and behavior beyond the captured documentation remain unverified.

The overview

Identity

This is Together AI’s documentation page titled Text-to-speech streaming, available at [https://docs.together.ai/docs/inference/text-to-speech/streaming.md]. It teaches an HTTP speech-generation feature through SDK and direct-request examples.

The examples call the speech endpoint at [https://api.together.ai/v1/audio/speech] and identify canopylabs/orpheus-3b-0.1-ft as the model and tara as the voice. The page does not establish the complete supported model or voice catalog.

Assessment

The guide is useful for understanding request settings and the shape of streamed speech responses. Its concrete examples give developers a starting point for SDK integration or an HTTP client.

It leaves substantial application work to the reader: playback, buffering, error handling and a complete event-decoding example are not provided. The stated latency benefit has no accompanying measurements.

Users

The likely audience is developers building applications that should begin playing generated speech before the entire response is ready. Experienced developers can use the event descriptions to plan a custom audio pipeline.

Beginners get examples in three interfaces, but will need additional guidance on authentication setup, dependency installation and audio playback. The page does not provide a finished browser player or voice application.

Capabilities

The documented HTTP streaming mode delivers successive audio chunks through server-sent events. The page also describes word-timestamp events when alignment=word and a terminal [DONE] marker.

Streaming supports raw PCM only. Separate examples demonstrate non-streaming raw-byte output with pcm_s16le encoding and a sample_rate of 24000. The page states that non-streaming requests can also use MP3 or WAV.

Using it

Requirements

Direct HTTP examples authenticate with a bearer API key referenced through TOGETHER_API_KEY. The Python examples use together or requests, while TypeScript examples import together-ai. Package versions, runtime versions and installation commands are not specified.

A custom streaming consumer needs to interpret server-sent events, decode base64 audio payloads and feed the resulting bytes into a PCM-compatible audio path. The page does not specify all playback parameters or establish a default streaming sample rate.

Mechanism

With stream=true, the API returns server-sent events. An audio event has type conversation.item.audio_output.delta, an item_id and a delta containing base64-encoded audio. Receiving chunks before generation finishes is the documented basis for earlier playback.

A conversation.item.word_timestamps event contains words and corresponding start_seconds and end_seconds arrays when word alignment is requested. The page shows the event structure but does not supply a complete request demonstrating that option.

The raw-byte examples use stream=false and write or expose the response body directly. They describe a different response path from the event-wrapped streaming output.

Setup

The SDK streaming examples specify a model, input text, voice, stream=true, response_format=raw and response_encoding=pcm_s16le. The Python example uses with_streaming_response.create and stream_to_file; the TypeScript example iterates over the returned response.

The streaming cURL example supplies stream=true but omits response_format and response_encoding. Because the same page says raw format is required, use explicit settings when adapting that request instead of assuming undocumented defaults. Whether the shorter cURL request succeeds is unverified.

Example

The Python streaming example submits a short sentence to canopylabs/orpheus-3b-0.1-ft with voice=tara, stream=true, response_format=raw and response_encoding=pcm_s16le, then calls response.stream_to_file to save speech_streaming.pcm.

The TypeScript streaming example collects chunks in an array and logs completion. It does not demonstrate playback as chunks arrive. The separate Python requests example sets stream=false and sample_rate=24000 before writing output_raw.pcm. These are documented examples; none was executed.

Assessment & evidence

Limitations

Streaming is restricted to raw PCM output. Applications needing MP3 or WAV must account for that restriction; the page lists those formats only for non-streaming requests.

The documentation supplies no measured time-to-first-byte, throughput, audio-quality results, concurrency limits, input-length limits or reliability guarantees. It also omits retry, cancellation, buffering and playback guidance.

The explicit 24000 sample rate appears in non-streaming examples. It does not establish the streaming default or a complete list of supported rates. SDK compatibility and actual endpoint behavior were not assessed.

Fit rationale

The documented design fits applications whose priority is receiving speech incrementally and whose developers can integrate PCM audio handling. Its practical value comes from the request examples and explicit event fields.

Whether it meets a particular interactive latency target remains unknown. Earlier access to chunks creates an opportunity for earlier playback, but the page does not demonstrate end-to-end responsiveness or implementation effort.

Alternatives

Within the documented API, non-streaming requests offer MP3, WAV or raw output. They are relevant when the application can wait for a complete response or needs one of the listed file formats.

The page points to Together AI’s WebSocket API for bidirectional text input and its claimed lowest interactive latency [https://docs.together.ai/docs/inference/text-to-speech/websocket.md]. That linked page is outside the supplied evidence, so its implementation, performance and requirements are not assessed. No competing service is evaluated here.

Evidence

The evidence consists of the complete selected documentation page at [https://docs.together.ai/docs/inference/text-to-speech/streaming.md], captured as selected-page.txt. It contains request examples, response-event structures, an output-format notice and links to related documentation.

The captured source revision is sha256:6bfaa0bcbcb1c3eebb2bdaf88bf51e497650984c86fa8f089bd308059718c072. The material establishes what the documentation describes; it supplies no execution results or independent performance evidence.

Access & freshness

Costs

Pricing is unknown from this page. It links to a text-to-speech overview for pricing, but includes no rates, billing units, minimum charges or free-use allowances. No cost estimate is supported by the supplied evidence.

Rights

The page includes no license or usage terms establishing rights for the documentation, example code, named model or generated audio. Commercial-use and redistribution permissions remain unknown. Data retention and privacy terms are also absent.

Freshness

The supplied page was captured on 24 November 2026 at 04:22:53.650 UTC. It contains no publication date, last-updated date or SDK version requirements.

The model identifier includes 0.1, but the page does not explain its release history or current availability. The capture timestamp establishes when the text was retained, not when the API behavior was verified.

Next steps

Choose between incremental HTTP audio and a complete non-streaming response based on playback needs. For HTTP streaming, start with the explicit raw-format and PCM-encoding settings shown in the SDK examples, and plan how audio events will reach a player.

Before adopting the feature, confirm current authentication and SDK setup, streaming sample-rate requirements, model availability, pricing and usage terms. The page directs readers to the overview for parameters, voices and pricing [https://docs.together.ai/docs/inference/text-to-speech/overview.md].

Validate the integration with a short request and measure time to first audible output in the intended application. Check chunk handling, playback continuity and failure behavior. These are proposed validation steps; no such execution or measurement has been performed.

Evidence for this report

selected-page.txtselected · checked 2026-11-24