-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IdentifyLanguage on TranscribeStreamingClient throws ERR_STREAM_PREMATURE_CLOSE #6422
Comments
Hey @pbudzon , Thanks for the feedback! It seems that you need to add For example : IdentifyLanguage: true,
LanguageOptions: "en-US,de-DE", For a list of languages supported with Amazon Transcribe streaming, refer to the Supported languages I just put sample code in my real working sample repo - Please let me know if you still have this issue! Thanks! |
Hi @zshzbh Nowhere in the documentation is that requirement listed - in various places it's actually pointed out that including suggested languages ( The SDK documentation you've linked, actually specifically says the suggested languages are optional:
And
We very much do not want to include suggested languages list in the transcription, as from our experience in batch transcriptions it can produce poor quality transcriptions for our use case (we have various speakers with varying dialects so auto detection without suggestions works best for us). We'd ideally like to use the same in streaming. |
Bump on this - is this a documentation issue and |
Hey @pbudzon, Sorry for the late response, I was OOO last week. Yes I think there's a gap on our doc. Nice finding! On service doc , it indicates that
But on AWS JS SDK doc, it indicates that
This is a doc gap, I tried on my end, and it works fine with
We will update the doc. Could you please try to add Sorry for this inconvenience! Again, thanks for the finding! I will post the ticket number for internal reference once I have one. Thanks! |
Hey @pbudzon, We are targeting to release the fix soon, I will keep you updated once the fix has been released. Thanks! |
Checkboxes for prior research
Describe the bug
I have a very simple JS application that uses TranscribeStreamingClient to transcribe a live stream. It works perfectly fine when
LanguageCode
is provided forTranscribeStreamingClient
. However, when attempting to useIdentifyLanguage
instead, it throws the following error:SDK version number
@aws-sdk/[email protected]
[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.16.0
Reproduction Steps
Command to run:
simple.js :
Observed Behavior
When running the above, the following output is given:
Expected Behavior
Similar output to when
LanguageCode
is used is expected, output when running withLanguageCode: ...
looks like this:Possible Solution
Is
IdentifyLanguage
not supported with streaming transcriptions? The documentation suggests it should work, and there doesn't appear to be any additional requirements to use it (vs whenLanguageCode
is used).Additional Information/Context
The code is based on this example: https://github.com/aws-samples/amazon-transcribe-streaming-live-closed-captions
The text was updated successfully, but these errors were encountered: