Azure cognitive services - Speech Synthesis stopped working

Richard Green 6 Reputation points


I've been using Speech Synthesis quite happily for several months, but on the 16th October it suddenly stopped working.

I have double checked my keys, and regenerated new ones, but the call to SpeakTextAsync (using the Microsoft.CognitiveServices.Speech nuget package) just eventually fails with a reason of Canceled.

Even a call to GetVoicesAsync results in an error, e.g.

Error in sending a http request. Details: Failed with error: HTTPAPI_OPEN_REQUEST_FAILED [0x3]
X-ConnectionId: b9e1c706e75f443283b0e599caf69c12

Example code:

async Task Main()  
	var speechSettings = new SpeechSettings  
		Key = "<redacted>",  
		Region = "uksouth",  
		Voice = "en-US-JennyNeural"  
	var config = SpeechConfig.FromSubscription(speechSettings.Key, speechSettings.Region);  
	var synth = new SpeechSynthesizer(config);  
	synth.Properties.SetProperty(PropertyId.SpeechServiceConnection_SynthVoice, speechSettings.Voice);  
	await synth.SpeakTextAsync("Test sentence");  
public class SpeechSettings  
	public string Key { get; set; } = default;  
	public string Region { get; set; } = default;  
	public string Voice { get; set; } = default;  
Azure Speech
Azure Speech
An Azure service that integrates speech processing into apps and services.
920 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Richard Green 6 Reputation points

    Hello @YutongTie-MSFT ,

    Uninstalling update KB5018410 worked!

    Obviously this doesn't sound like a permanent solution, but I'm guessing the nuget package will need to be patched somehow?


    1 person found this answer helpful.
    0 comments No comments

  2. Richard Green 6 Reputation points

    Hello @YutongTie-MSFT ,

    I'm running Windows 10 - Version 21H2 (OS Build 19044.2130)

    The following updates were recently installed:

    I suspect given the timing (they were installed on the 16th) that could well be one of these two!

    My Azure cost analysis graph shows usage on the 16th but nothing on the 17th.

    I'll see if I can uninstall those updates and try again.


    0 comments No comments