Send Speech with callback URL
This endpoint makes an HTTP GET request to retrieve details of all completed calls from that can sent to speech recognition service. The request includes query parameters such as callback_url
, callback_method
, callback_data
, from
, language
, token
, limit
, and offset
.
Purpose
The purpose of this request is to send manually completed calls to the speech recognition service based on the provided parameters.
Expected Input
callback_url
: The URL where the callback will be sent.
callback_method
: The HTTP method for the callback request. options: POST, PUT
callback_data
: The data of the callback response action, JSON with placeholders.
Allowed placeholders for callback_data:
Speech-related:
- {speech_result} - Speech result
- {speech_phrases} - Array of Speech phrases
- {speech_task_state} - Speech task's current state
Call-related:
- {call_id} - Call Id
- {caller_user_id} - Caller User Id
- {caller_username} - Caller username
- {start_at} - Call Start At
- {end_at} - Call End At
- {agent_callerid_name} - Agent Caller Id name
- {agent_callerid_number} - Agent Caller Id number
- {call_duration} - Call duration
- {call_bill_duration} - Call bill duration
language
: The language code for the speech recognition.
token
: Authentication token for accessing the service.
Expected Output
The response will be in JSON format and may include a speechRequestId
and callIds
object containing the details of calls that initiate to speech recognition service. while speech transcript will be ready, the request will initiate to your callback_url