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

# Playground

> Try the realtime WebSocket in your browser: talk into your microphone or stream a file, watch live transcripts and turns, hear every voice, and see the timings.

Connect with your key, then talk: you see speech start and stop, each transcript as it changes (`interim`, `preflight`, `final`), gender, speakers and why each turn ended. Type text to hear any voice, stream it word by word like an LLM, and interrupt it by talking. Every message sent and received is in **Messages**.

Connection

API key (secret or older key, with Realtime access)

Address

Connect
Disconnect
Ping
Send config.update

The key stays in this page and is sent only to the address above, in the handshake. Use a test key limited to Realtime, and delete it afterwards. A key with allowed origins needs docs.tryhamsa.com in its list.

Reset

Settings go in the handshake when you connect. During a session, change them with **Send config.update**; fields marked fixed need a new session.

Speech to text

stt.flush
Clear

Text to speech

Speak (tts)
Stream as tokens
every
ms

Cancel
Download WAV

Interrupt when I talk

Send playback state

Send a message

Send

Messages

Audio frames
Clear

> [!TIP]
>
> **Try this:** click **Stream as tokens**, then talk while the voice plays. With **Interrupt when I talk** on **Smart**, the voice gets quieter as soon as you speak, stops when your words arrive, and comes back if you only said "mhm" (shown as a backchannel, not a turn). This is the interruption pattern described in [Text to speech](https://docs.tryhamsa.com/websocket/realtime/text-to-speech.md#stop-speaking-interruptions).

The playground sends 16 kHz PCM16 audio from your microphone or file. To use these settings in your own code, open **Handshake JSON** and copy it. Each field is explained in [Settings](https://docs.tryhamsa.com/websocket/realtime/configuration.md), and each message in the [Message reference](https://docs.tryhamsa.com/websocket/realtime/messages.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.