Replies: 1 comment 6 replies
-
Found this on the old/removed documentation. I'll see if that helps: It uses this package: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to build a web application that needs to transcribe a stream of voice in real-time.
The backend is written in Golang and uses AWS SDK V2.
The connection between frontend and backend is established via websocket.
This is how the backend handles the incoming stream:
This is how I send the audio from frontend:
To write this code, I was inspired by one of the tests in the SDK v2's repo (this one):
aws-sdk-go-v2/service/transcribestreaming/internal/testing/eventstream_test.go
Lines 402 to 493 in 4034d37
But when I run the code I receive these errors:
Stream write:
expect no error, got BadRequestException: Your request timed out because no new audio was received for 15 seconds.
Stream read:
0, expect event, got nil
I can see the audio (or at least a binary) is sent to AWS, so I am not sure why I get these errors instead of the transcription text.
I assume the format I am sending the audio should be correct based on this document:
https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html
(I am using Google Chrome, but tested with other browsers as well => same result)
Does anyone know how I can debug this code? Or do you have any suggestion or an example code in Golang (SDK V2) I can use?
PS:
Beta Was this translation helpful? Give feedback.
All reactions