I am having a problem using Azure Speech Synthesizer.
I pass in a string to SpeechSynthesizer.SpeakTextAsync, the speech is synthesized but the next line of code is not reached as the task does not complete.
public async Task SynthesizeAudioAsync(string text)
{
using var synthesizer = new SpeechSynthesizer(_config);
Debug.WriteLine("Synthesizing");
using var result = await synthesizer.SpeakTextAsync(text);
Debug.WriteLine("Synthesized"); //This line is not reached
}
I am using the C# SDK
Is there an issue with Azure speech services at the moment? Or am I doing something wrong? Thanks!