getSpeech

The GetSpeech command has completed and its actionUrl is being invoked. A PerCL response is expected, unless reason is hangup.

Request ParameterTypeDescription
requestTypestringContext or reason why this request is being made. Will be getSpeech - The GetSpeech command has completed and its actionUrl is being invoked.
callIdstringUnique identifier for this Call, generated by FreeClimb.
accountIdstringAccount ID associated with your account.
fromstringPhone number of the party that initiated the Call (in E.164 format).
tostringPhone number provisioned to the customer and to which this Call is directed (in E.164 format).
callStatusstringDescriptive status for the Call. Valid values are:
ringing - Call is currently ringing.
inProgress - Call was answered and is currently in progress (not queued, not in conference).
completed - Call ended normally.
busy - Caller received a busy signal.
failed - Call could not be completed as dialed (most likely because the phone number was non-existent).
noAnswer - Call ended without being answered.
canceled - Call was canceled via the REST API while queued or ringing.
directionstringString describing the direction of the Call – inbound for inbound calls, outbound for calls initiated via the REST API, or outboundDial for calls initiated by the OutDial PerCL command.
conferenceIdstringThis is only populated if request pertains to a conference. Otherwise, it is set to null.
queueIdstringThis is only populated if the request pertains to a queue. Otherwise, it is set to null.
reasonstringThis field explains how the GetSpeech action ended. Valid values are:
error - the speech recognition engine failed to process the request for any reason (e.g. invalid grammar file).
hangup - the Caller hung up.
digit - the Caller input a digit during recognition.
noInput - an initial timeout occurred.
noMatch - there was audio input but it could not be matched with the grammar.
recognition - the audio input matched the specified grammar to some degree of confidence.
recognitionTimeout - The recognition timed out while waiting for speech based on grammars specified
recognitionResultstring or integerSemantic content (either a string if speech was recognized or a digit if a digit was input instead of speech) returned from the entry or tag that was recognized within the grammar. The content will be replaced by "xxxxx" when privacyMode is set to true. This field is populated only if the reason field is set to recognition or digit.
confidenceintegerLevel of confidence in the obtained result. This is a value in the range 0 to 100 – with 0 being total lack of confidence and 100 being absolute certainty in the recognition. This field is populated only if the reason field is set to recognition.
parentCallIdstringID of the Call that created this leg (child call).
completionReasonstringAdvanced diagnostic information if reason was error. See RFC 6787 section 9.4.12 - speech recognition.
completionCausestringAdvanced diagnostic information if reason was error. See RFC 6787 section 9.4.11 - speech recognition.
mrcpCodeintegerAdvanced diagnostic information if reason was error. See RFC 6787 section 5.4 - MRCPv2 specification.
mrcpDiagnosticstringAdvanced diagnostic information if reason was error. See RFC 6787 section 5.4 - MRCPv2 specification.