Created
September 19, 2024 11:39
-
-
Save davehorton/2144d18ae50056b7569d89d98ea929be to your computer and use it in GitHub Desktop.
comparison of AWS payload for transcripts using websocket api vs grpc api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWS Websocket api | |
Partial: | |
{ | |
"Transcript": { | |
"Results": [ | |
{ | |
"Alternatives": [ | |
{ | |
"Items": [ | |
{ | |
"Content": "What", | |
"EndTime": 4.005, | |
"StartTime": 3.805, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
}, | |
{ | |
"Content": "time", | |
"EndTime": 4.205, | |
"StartTime": 4.005, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
} | |
], | |
"Transcript": "What time" | |
} | |
], | |
"ChannelId": "ch_0", | |
"EndTime": 4.735, | |
"IsPartial": true, | |
"ResultId": "1d128c92-073c-4432-b2e0-ea6e195e96d0", | |
"StartTime": 3.725 | |
} | |
] | |
} | |
} | |
Final: | |
{ | |
"Transcript": { | |
"Results": [ | |
{ | |
"Alternatives": [ | |
{ | |
"Items": [ | |
{ | |
"Confidence": 0.9997, | |
"Content": "What", | |
"EndTime": 4.005, | |
"StartTime": 3.805, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
}, | |
{ | |
"Confidence": 0.9998, | |
"Content": "time", | |
"EndTime": 4.165, | |
"StartTime": 4.005, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
}, | |
{ | |
"Confidence": 0.9998, | |
"Content": "is", | |
"EndTime": 4.285, | |
"StartTime": 4.165, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
}, | |
{ | |
"Confidence": 0.9997, | |
"Content": "the", | |
"EndTime": 4.485, | |
"StartTime": 4.285, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
}, | |
{ | |
"Confidence": 0.9997, | |
"Content": "meeting", | |
"EndTime": 4.825, | |
"StartTime": 4.485, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
}, | |
{ | |
"Confidence": 0.9991, | |
"Content": "tomorrow", | |
"EndTime": 5.315, | |
"StartTime": 4.825, | |
"Type": "pronunciation", | |
"VocabularyFilterMatch": false | |
}, | |
{ | |
"Content": "?", | |
"EndTime": 5.315, | |
"StartTime": 5.315, | |
"Type": "punctuation", | |
"VocabularyFilterMatch": false | |
} | |
], | |
"Transcript": "What time is the meeting tomorrow?" | |
} | |
], | |
"ChannelId": "ch_0", | |
"EndTime": 5.625, | |
"IsPartial": false, | |
"ResultId": "1d128c92-073c-4432-b2e0-ea6e195e96d0", | |
"StartTime": 3.725 | |
} | |
] | |
} | |
} | |
AWS Grpc API | |
Partial: | |
[ | |
{ | |
"is_final": false, | |
"alternatives": [ | |
{ | |
"transcript": "What time" | |
} | |
] | |
} | |
] | |
Final: | |
[ | |
{ | |
"is_final": true, | |
"alternatives": [ | |
{ | |
"transcript": "What time is the meeting tomorrow?" | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment