Stop Speaking Text During a Call
Stop text-to-speech that is currently being spoken on an active call.
This endpoint allows you to stop text-to-speech playback that is currently active on a call. This is useful for ending looping messages when a user makes a selection, stopping announcements when an agent becomes available, or interrupting speech based on DTMF input.
Note: If no text-to-speech is currently playing on the call, this endpoint will return success without performing any action.
HTTP Request
https://api.vobiz.ai/api/v1/Account/{auth_id}/Call/{call_uuid}/Speak/Path Parameters
auth_idstringRequiredYour Vobiz authentication ID
call_uuidstringRequiredUnique identifier of the call
No Request Body: This endpoint does not require any request body parameters.
Request Body
{}No request body parameters required. Send an empty JSON object.
Response
Returns HTTP 204 No Content on success.
HTTP Status Code: 204Success: A 204 status code indicates the text-to-speech has been stopped successfully. There is no response body.
Example Request
Stop Text-to-Speech
curl -X DELETE https://api.vobiz.ai/api/v1/Account/{auth_id}/Call/{call_uuid}/Speak/ \
-H "X-Auth-ID: YOUR_AUTH_ID" \
-H "X-Auth-Token: YOUR_AUTH_TOKEN"Use Cases
- •Stop looping queue messages when an agent answers
- •End IVR menu announcements when user presses a DTMF key
- •Interrupt speech when transferring to a live agent
- •Stop welcome messages when call is answered
- •End promotional announcements based on user action
Tip: Use this endpoint in conjunction with the Speak Text endpoint to create dynamic TTS experiences that respond to user input or call events in real-time.