### Text-to-Speech

Text Hello, this is a demonstration of BabelVox text to speech.
Language
Speaker

### Emotion

### Prosody Controls

Rate 1.0
Pitch (st) 0
Volume 1.0

### Generate with Prosody

Text This is exciting news that I want to share with everyone!
Language
Speaker

### SSML Snippets

### SSML Input

<speak> Hello, welcome to BabelVox. <break time="500ms"/> The price is <say-as interpret-as="number">$4.50</say-as>. <break time="300ms"/> Call us at <say-as interpret-as="telephone">555-123-4567</say-as>. </speak>
Language
Speaker

### SSE Streaming

Audio chunks are streamed via Server-Sent Events and played in real-time using the Web Audio API.
Text The quick brown fox jumps over the lazy dog. This sentence demonstrates real-time streaming synthesis.
Language
Speaker
Format

### WebSocket Streaming

Bidirectional real-time streaming with cancel support. Requires the WebSocket server (`--ws-port`).
WebSocket Port
Disconnected
Text Hello from WebSocket streaming! This audio is delivered in real-time binary chunks.
Language
Speaker
Format

### Long-form Synthesis

Text Chapter 1: The Beginning It was a bright cold day in April, and the clocks were striking thirteen. The sky above the port was the color of television, tuned to a dead channel. Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind, slipped quickly through the glass doors, though not quickly enough to prevent a swirl of gritty dust from entering along with him. The hallway smelt of boiled cabbage and old rag mats.
Strategy
Language
Speaker

### Batch Synthesis

Synthesize multiple texts in a single request. Each item can have a different language and speaker.

### Speaker Profiles

Speaker profiles are created from reference audio files on the server. Use the CLI to save speakers: `babelvox --save-speaker alice --ref-audio voice.wav` or POST to `/speakers` with a server-side audio path.

### Voice Mixing (Python API)

Speaker mixing requires direct access to numpy embeddings and is available via the Python API. Mix two or more voices with weighted blending:

    from babelvox.speakers import mix_speakers

    # Load two speaker profiles
    alice = tts.speaker_library.load("alice")
    bob = tts.speaker_library.load("bob")

    # Mix: 70% alice, 30% bob
    mixed = mix_speakers(
        [alice.embedding, bob.embedding],
        [0.7, 0.3]
    )

    # Use the mixed voice
    wav, sr = tts.generate("Hello!", speaker_embed=mixed)

### Sampling Parameters

These parameters apply globally to Basic TTS, Prosody, SSML, and Batch tabs.
Temperature 0.9
Top-K 50
Top-P 1.0
Rep. Penalty 1.05
Max Tokens 512

### Connection

HTTP Base URL
WebSocket Port

### Request Log