This product is a Beta product. This means that it and the information is subject for change, updates or removal.
If you test this product, please let us know your feedback, so that we can make it the best possible product for you. Please share your feedback with us here.
These messages are sent from the API to your application.
| Type (t) | Description | Example |
|---|---|---|
| hello | The WebSocket session has started. | |
| audio | Base64 encoded audio data, see Audio Formats. | |
| sync | Sent in response to a sync request from the application. All audio sent before the request has been played. |
|
| bye | The call has ended. reason can be either done, hangup, or error. |
|
These messages are sent to the API from your application.
Type (t) |
Description | Example |
|---|---|---|
| sending | Let the API know that we will be sending data in the given format. | |
| listening | Let the API know that we want to receive audio in the given format. | |
| audio | Base64 encoded audio data, see Audio Formats. | |
| interrupt | Immediately clear the audio buffer and ignore all subsequent audio messages until a new sending is sent. |
|
| sync | Request a checkpoint from the API. The API will reply once all previously sent audio has been played. | |
| bye | End the call. | |