I want to call transcribe streaming as REST API from UI (Angular)

0

Hi,

Based on this link https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html provided by AWS i got to know that we can call streaming as a REST API from PostMan or from any UI (Angular) to process the audio real time.

I tried using this url https://transcribestreaming.us-west-2.amazonaws.com/stream-transcription?x-amzn-transcribe-language-code=en-US&x-amzn-transcribe-sample-rate=16000&x-amzn-transcribe-media-encoding=pcm&x-amzn-transcribe-session-id=435d60c4-3f68-4871-8680-3d100eccd63d
and the below json as input to the above url

{
"AudioStream": {
"AudioEvent": {
"AudioChunk": ""
}
}
}

as the streaming service accepts blob type to process the content real time and i am not sure what type of data can we send to the url.

My problem is that when i try to hit the url in PostMan i get the below response
{
"Output": {
"__type": "com.amazon.coral.service#UnknownOperationException"
},
"Version": "1.0"
}

What is the exact way of calling the transcribestreaming api form UI (Angular) and what should be the input data we need to send.

Is there any possibility to call the transcribe from UI(Angular) itself ??

Edited by: vjandhyala on Feb 6, 2019 1:20 AM

已提问 5 年前547 查看次数
2 回答
0

Hi did you get the answer for same? Have you resolved your issue?

已回答 5 年前
0

+1, having the exact same issue. Did you ever get this solved?

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则