Stream Speech
Generates speech as Server-Sent Events. Audio events contain ordered base64-encoded standalone WAV parts; alignment events are included only when with_timestamps is true. A clean stream ends with data: [DONE]. The voice identified by voice_id must be an ACTIVE professional voice. Rate limit: 30 requests per minute per workspace member.
Authorizations
HeyGen API key. Obtain from your HeyGen dashboard.
Body
Identifier of the voice used for speech synthesis.
1Plain text to synthesize. SSML and break tags are not supported.
1 - 5000Language code used for speech synthesis, such as en.
1Optional best-effort deterministic generation seed.
0 <= x <= 4294967295Whether to include word-timestamp events in the response stream.
Response
Server-Sent Events stream. Each data: frame contains an audio, alignment, or terminal error event; a clean stream terminates with data: [DONE].
- SpeechAudioEvent
- SpeechAlignmentEvent
- SpeechErrorEvent
One JSON event carried by the speech SSE stream.

