TranslationRecognizer has stopped sending Synthesizing event in the past few days
Billy Lo
0
Reputation points
My existing code (C#) has been using Microsoft.CognitiveServices.Speech SDK (1.41.1) to perform speech translation with voice synthesis successfully in the past 3 months.
In the past few days, the Synthesizing event has stopped firing. (Other events such as Recognized are all fine.)
Can you please share any ideas on how to make it work again?
thanks. Billy.
var config = SpeechTranslationConfig.FromEndpoint(endpointUrl, SPEECH__SERVICE__KEY);
var audioConfig = AudioConfig.FromDefaultMicrophoneInput();
var autoDetectSourceLanguageConfig = AutoDetectSourceLanguageConfig.FromOpenRange();
var translationRecognizer = new TranslationRecognizer(config, autoDetectSourceLanguageConfig, audioConfig);
translationRecognizer.Synthesizing += (s, e) => {
Debug.WriteLine("Synthesizing event.");
// process audio
};
await translationRecognizer.StartContinuousRecognitionAsync().ConfigureAwait(true);
Sign in to answer