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

asked 5 years ago513 views
2 Answers
0

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

answered 5 years ago
0

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

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions