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

demandé il y a 5 ans513 vues
2 réponses
0

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

répondu il y a 5 ans
0

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

répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions