Returning a complete JSON transcript
Description:
Transcribe a short audio file and return a full JSON transcript in the HTTP response. Due to the size of full JSON transcripts, a shorter example audio file is used for this example than was used in Example 1. The JSON data has been reformatted to make it easier to read, but it is otherwise unmodified. Emotion and Gender identification has been turned on to show how these are represented in the JSON file.
Command:
curl -F output=json \
-F model=eng1:callcenter \
-F gender=true \
-F emotion=true \
-F file=@sample1.wav \
http://vblaze_name:17171/transcribe
Result:
warning
tag in the JSON output to see if there were any issues with the transcription. {
"confidence": 0.89,
"donedate": "2019-09-09 15:24:31.532134",
"emotion": "Positive",
"gender": "female",
"model": "eng1:callcenter",
"recvdate": "2019-09-09 15:24:30.934438",
"recvtz": [
"EDT",
-14400
],
"sentiment": "Positive",
"sentiment_scores": [
3,
0
],
"source": "sample1.wav",
"utterances": [
{
"confidence": 0.89,
"donedate": "2019-09-09 15:24:31.532134",
"emotion": "Positive",
"end": 6.17,
"events": [
{
"confidence": 0.9,
"end": 0.71,
"start": 0.55,
"word": "And",
"wordex": "And(4)"
},
{
"confidence": 0.92,
"end": 0.93,
"start": 0.71,
"word": "that"
},
{
"confidence": 0.91,
"end": 1.03,
"start": 0.93,
"word": "it"
},
{
"confidence": 0.9,
"end": 1.33,
"start": 1.03,
"word": "was",
"wordex": "was(2)"
},
{
"confidence": 0.87,
"end": 1.94,
"start": 1.33,
"word": "resolved"
},
{
"confidence": 0.95,
"end": 2.24,
"start": 2.07,
"word": "in"
},
{
"confidence": 0.95,
"end": 2.3,
"start": 2.24,
"word": "a"
},
{
"confidence": 0.98,
"end": 2.7,
"start": 2.3,
"word": "very"
},
{
"confidence": 0.92,
"end": 3.39,
"start": 2.7,
"word": "professional"
},
{
"confidence": 0.92,
"end": 3.95,
"start": 3.39,
"word": "manner."
},
{
"confidence": 0.68,
"end": 4.72,
"start": 4.48,
"word": "Your",
"wordex": "Your(2)"
},
{
"confidence": 0.71,
"end": 5.32,
"start": 4.72,
"word": "employees",
"wordex": "employees(2)"
},
{
"confidence": 0.63,
"end": 5.43,
"start": 5.37,
"word": "a"
},
{
"confidence": 0.97,
"end": 5.85,
"start": 5.43,
"word": "very"
},
{
"confidence": 0.98,
"end": 6.17,
"start": 5.85,
"word": "good."
}
],
"gender": "female",
"metadata": {
"channel": 0,
"model": "eng1:callcenter",
"source": "sample1.wav",
"uttid": 0
},
"recvdate": "2019-09-09 15:24:30.934438",
"recvtz": [
"EDT",
-14400
],
"sentiment": "Positive",
"sentimentex": [
[
3,
0
],
[
[
"+",
1,
[
2,
5
]
],
[
"+",
1,
[
7,
10
]
],
[
"+",
1,
[
13,
15
]
]
]
],
"start": 0.55
}
]
}