Speech recognition results
Speech recognition results are added to $request.rawRequest. The data is available in the $request.rawRequest.data field.
Example:
{
"cause": "OK",
"text": "How are you?"
}
Here:
causeis the recognition result. Possible values:"OK": the speech was successfully recognized."NO_INPUT": speech recognition failed.
textis the speech text. The field is present ifcauseis"OK".
User request data
The results may also contain additional user request data received from the ASR provider. Data is available for the following providers:
- 3iTech
- Tinkoff VoiceKit
- Yandex SpeechKit v2
- Yandex SpeechKit v3
For example, you can get:
- Hypotheses about user gender in Tinkoff Voicekit.
- The probability score that an autoresponder speaks instead of the user in Yandex SpeechKit v3.
Data is available in the $request.rawRequest.data.propertiesResponse field.
Example:
{
"result": {
"recognition_result": {
"start_time": "0.510s",
"end_time": "2.550s",
"gender_identification_result": {
"male_proba": 0.991876,
"female_proba": 0.008123994
}
},
"is_final": true
}
}
Supported fields
A limited list of fields is supported:
- Yandex SpeechKit v2
- Yandex SpeechKit v3
- Tinkoff VoiceKit
- 3iTech
In $request.rawRequest.data.propertiesResponse.results, the following fields are available:
chunks:-
alternatives:textconfidence
-
final -
endOfUtterance
-
In the Yandex SpeechKit v2 documentation, you can view the description of these fields and learn about the conditions under which they are added.
In $request.rawRequest.data.propertiesResponse.results, the following fields are available:
-
alternatives:-
words -
text -
start_time_ms -
end_time_ms -
confidence -
languages:language_codeprobability
-
-
channel_tag
In $request.rawRequest.data.propertiesResponse.classifier_updates, the results of the classifiers are available.
Data is added only for the events of the final type:
-
window_type -
start_time_ms -
end_time_ms -
classifier_result:-
classifier -
highlights:textstart_time_msend_time_ms
-
labels:labelconfidence
-
In the Yandex SpeechKit v3 documentation, you can view the description of these fields and learn about the conditions under which they are added.
In $request.rawRequest.data.propertiesResponse.results, the following fields are available:
-
recognition_result:-
channel -
start_time -
end_time -
sentiment_analysis_result:negative_prob_audionegative_prob_audio_text
-
gender_identification_result:male_probafemale_proba
-
is_final
-
In the Tinkoff VoiceKit documentation, you can view the description of these fields and learn about the conditions under which they are added.
In $request.rawRequest.data.propertiesResponse.results, the following fields are available:
-
session_id -
text -
final -
quality_score -
answerphone_detected -
sentiments_info:-
phrase_sentiments:sentiment_probsphrase_id
-
avg_sentiments_probs
-
-
words_per_second -
age_group -
tech_metrics:data_received_ms
In the 3iTech documentation, you can view the description of these fields and learn about the conditions under which they are added.
- Some data is added only if additional settings are specified for the ASR provider. To specify the settings, use the
$dialer.setAsrPropertymethod. - If you want to use data that is not supported in
$request.rawRequest, please contact our support team: support@just-ai.com.