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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인