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 年前檢視次數 544 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南