Skip to main content

Real-Time Transcription Available

This event may be sent to the url specified when sending a <StartTranscription> verb.

Request Parameters

PropertyDescription
accountIdThe user account associated with the call.
answerTimeTime the call was answered, in ISO 8601 format.
applicationIdThe id of the application associated with the call.
callIdThe call id associated with the event.
callUrlThe URL of the call associated with the event.
directionThe direction of the call. Either inbound or outbound. The direction of a call never changes.
enqueuedTime(optional) If call queueing is enabled and this is an outbound call, this is the time the call was queued, in ISO 8601 format. Otherwise, this is omitted.
eventTimeThe approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution.
eventTypeThe event type, value is realTimeTranscriptionAvailable
fromThe provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous.
realTimeTranscriptionDetails about the transcription.
realTimeTranscription.idThe unique id of the transcription.
realTimeTranscription.nameThe name of this transcription. If the name attribute was specified in the StartTranscription verb, then this will be the value of that attribute, otherwise it will default to the transcription id.
realTimeTranscription.startTimeThe approximate UTC date and time the transcription was started
realTimeTranscription.tracksThe segments of the call that are being sent in the transcription, values will be one or both of inbound and outbound
realTimeTranscription.statusThe status of the transcription. Can be either available, meaning that the transcription is ready for downloading, or failed otherwise.
realTimeTranscription.urlThe URL of the transcription.
realTimeTranscription.completedTimeThe time at which the transcription was completed and ready for download.
realTimeTranscription.destination(optional) The destination URL to which the transcription is sending media
realTimeTranscription.stabilized(optional) Whether to send transcription update events to the specified destination only after they have become stable. Requires destination.
startTimeTime the call was started, in ISO 8601 format.
toThe phone number that received the call, in E.164 format (e.g. +15555555555).
tag(optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present.

Expected Response

HTTP/1.1 204

Examples

Real-Time Transcription Available event with destination

POST http://myapp.example/realTimeTranscriptionEvents
Content-Type: application/json

{
"accountId" : "55555555",
"answerTime" : "2022-06-30T18:55:02.080Z",
"applicationId" : "7fc9698a-b04a-468b-9e8f-91238c0d0086",
"callId" : "c-95ac912f-68aacdd7-4a8e-4223-a7fd-020e02fa6bf2",
"callUrl" : "https://voice.bandwidth.com/api/v2/accounts/55555555/calls/c-95ac912f-68aacdd7-4a8e-4223-a7fd-020e02fa6bf2",
"direction" : "outbound",
"enqueuedTime" : "2022-06-30T18:54:59.172Z",
"eventTime" : "2022-06-30T18:55:02.489Z",
"eventType" : "realTimeTranscriptionAvailable",
"from" : "+15551112222",
"realTimeTranscription" : {
"id" : "t-95ac90b3-bfc81595-35fc-4b64-8265-fab6855b74a2",
"name" : "example_transcription",
"startTime" : "2022-06-30T18:55:02.489Z",
"tracks" : ["inbound", "outbound"],
"destination" : "wss://websocket.myapp.example",
"stabilized" : "true",
"status" : "available",
"url" : "https://voice.bandwidth.com/api/v2/accounts/55555555/calls/c-95ac912f-68aacdd7-4a8e-4223-a7fd-020e02fa6bf2/transcriptions/t-95ac90b3-bfc81595-35fc-4b64-8265-fab6855b74a2",
"completedTime" : "2022-06-30T18:55:02.489Z",
},
"startTime" : "2022-06-30T18:54:59.175Z",
"to" : "+15553334444"
}