当 AWS Transcribe 仍在流式传输时,isPartial 标志将设置为 True。一旦 isPartial 标志设置为 False,我想停止流式传输 怎么做?
有人做过吗?
https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-dg.pdf#streaming
这是Json:
{
"TranscriptResultStream": {
"TranscriptEvent": {
"Transcript": {
"Results": [
{
"Alternatives": [
{
"Items": [
{
"Content": "the",
"EndTime": 0.3799375,
"StartTime": 0.0299375,
"Type": "pronunciation"
},
{
"Content": "amazon",
"EndTime": 0.5899375,
"StartTime": 0.3899375,
"Type": "pronunciation"
},
{
"Content": "is",
"EndTime": 0.7899375,
"StartTime": 0.5999375,
"Type": "pronunciation"
},
{
"Content": "the",
"EndTime": 0.9199375,
"StartTime": 0.7999375,
"Type": "pronunciation"
},
{
"Content": "largest",
"EndTime": 1.0199375,
"StartTime": 0.9299375,
"Type": "pronunciation"
}
],
"Transcrip`enter code here`t": "the amazon is the largest"
}
],
"EndTime": 1.02,
"IsPartial": true,
"ResultId": "2db76dc8-d728-11e8-9f8b-f2801f1b9fd1",
"StartTime": 0.0199375
}
]
}
}
}
}