microsoft / cognitive-services-speech-sdk-js

Microsoft Azure Cognitive Services Speech SDK for JavaScript
Other
267 stars 101 forks source link

[Bug]: ConversationTranscriber.FromConfig(speechConfig, audioConfig, autoDetectLanguageConfig) [TypeError: Cannot read property 'mergeTo' of undefined] #869

Open uniquarkD opened 3 weeks ago

uniquarkD commented 3 weeks ago

What happened?

ConversationTranscriber.FromConfig is giving the following error:
[TypeError: Cannot read property 'mergeTo' of undefined]

      const speechConfig = SpeechConfig.fromSubscription(key, region);
      speechConfig.speechRecognitionLanguage = language;
      const autoDetectLanguageConfig = AutoDetectSourceLanguageConfig.fromLanguages(["fr-FR, "en-US"]);
      autoDetectLanguageConfig.mode = LanguageIdMode.Continuous
      const audioConfig = AudioConfig.fromStreamInput(pushStream);

      const recognizer = new ConversationTranscriber.FromConfig(speechConfig, audioConfig, autoDetectLanguageConfig)

Using 1.41.0 on a RN project.

Version

1.36.0 (Latest)

What browser/platform are you seeing the problem on?

React Native

Relevant log output

Initialization error: [TypeError: Cannot read property 'mergeTo' of undefined]