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

# Migrate from Resemble AI

> Move Resemble WebSocket synthesis to Bland's incremental text and turn protocol.

Resemble sends a complete synthesis request with a `request_id`, then returns audio until `audio_end`. Bland uses a `context_id` for a turn and can accept that turn token by token.

Start with the [Realtime TTS Quickstart](https://docs.bland.ai/tts/realtime-quickstart.md).

## Message mapping

| Resemble WebSocket | Bland `/v2/tts/ws` |
| - | - |
| `voice_uuid` | `init.voice` |
| `data` containing complete text or SSML | One or more `speak.text` deltas |
| `request_id` | `context_id` |
| `binary_response: true` | Binary audio is always used |
| `no_audio_header: true` | Realtime audio is always raw, without a WAV header |
| `audio_end` | `utterance_end` |

```js theme={null}
for await (const token of llmTextStream) {
  ws.send(
    JSON.stringify({
      type: "speak",
      context_id: turnId,
      text: token,
    }),
  );
}

ws.send(JSON.stringify({ type: "end_of_turn", context_id: turnId }));
```

## Compatibility notes

* A Resemble `project_uuid` has no Bland equivalent.
* Bland realtime supports PCM16 and 8 kHz mu-law. It does not support PCM24, PCM32, or MP3 on this WebSocket.
* Bland does not currently return grapheme, phoneme, or word timestamps.
* Resemble SSML and prompt markup do not map directly. Send plain text and use Bland voice controls where appropriate.
* A new Bland context preempts the active turn. It does not run multiple request IDs concurrently.

For complete text and a WAV response, use [Synthesize Speech (HTTP)](https://docs.bland.ai/api-v2/post/tts.md). For conversational input, keep one WebSocket open and use a new context for every LLM turn.

See the [Resemble streaming WebSocket reference](https://docs.resemble.ai/voice-generation/text-to-speech/streaming-websocket) and [Bland turn concepts](https://docs.bland.ai/tts/realtime-concepts.md#the-connection-and-turn-model).

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


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