Closed Richou closed 10 months ago
@Richou Thank you for using JS Speech SDK, and writing this issue up. There are a few translation bugs with continuous language id that I've put time into fixing this iteration, and one is the recognizing callback. Our next release, 1.33, due at the end of October, should fix this issue (the merged PR is here.)
If you'd like to give the fix a go before then, either clone the repo and run "npm install && npm pack" to create the binary, or send me an email at
@glharper Thank you for your answer, I can wait until the end of october. I will try with the new version and tell if that fixed my issue.
Tank you !
Fixed as of 1.34.0, if not before
What happened?
I'm trying to use the TranslationRecognizer with the AutoDetectSourceLanguage feature here is the initialize of the recognizer :
Please note on the code above, the
this.speechConfig.speechRecognitionLanguage = 'fr-FR'
if I don't set this field an errorthrowIfNullOrUndefined:SpeechServiceConnection_RecoLanguage
is thrown.My problem is that the object that should contains the translations
event.result.translations
is undefinedBut if I don't use the autoDetectSourceLanguageConfig :
Am I doing something wrong ? Is this feature available with Javascript SDK ?
I got inspired with the code : https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/csharp/sharedcontent/console/translation_samples.cs from the method
TranslationWithMultiLingualFileAsync_withLanguageDetectionEnabled
but translated in typescript/javascript.Platform, Operating System, and Programming Language
Version
1.31.0 (Edge)
What browser/platform are you seeing the problem on?
Node
Relevant log output
No response