Azure API randomly stopped working in Editor. Works in build

Using unity 2020.3.24f1.
I am using the Azure API for TTS, STT and Intent Recognition. (Almost) Always worked perfectly. Then this morning unity crashes (it crashes a lot), I re-open the editor and all three services stopped working. If I build the project (on android), everything works fine, so it’s an editor problem which I am unsure why it happened all of a sudden or how to solve it.
Not a network problem, tried wifi and ethernet connections both on the editor and the Android device: same result. Build on android works and the editor does not.
Any idea why?
Thanks in advance.

Did you reboot your Windows machine? I bet some little process somewhere responsible for serving keys or certificates or something critical to the TLS chain is dead.

Thank you, I’ve rebooted Windows several times, but the TTS still does not work.
At least now STT and Intent recognition work as intended.
I’ve tried to build my application on PC and I get the same problem (on android everything still works perfectly).
I tried this:

try
        {
            SpeechSynthesisResult speechSynthesisResult = await SpeechSynthesizer.SpeakTextAsync(txt);
            Debug.Log("speech synthesis result" + speechSynthesisResult.AudioDuration + speechSynthesisResult.Reason + speechSynthesisResult.Properties);
        }
        catch (Exception e)
        {
            Debug.LogError(e.ToString());
        }

This catches the exception (which arrives about one minute after I make the request for speech synthesis) saying that the duration of the generated clip must be longer than 0.

If it’s a certificate or TLS chain problem, is there any way to fix it manually?

Again, thanks in advance

Ok it IS a TLS problem with the last windows update, there are several people with the same issue:

https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/1692

1 Like