Azure cognitive services - Speech Synthesis stopped working

Richard Green 6 Reputation points
2022-11-04T17:15:28.383+00:00

Hi,

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]
GET https://uksouth.tts.speech.microsoft.com/cognitiveservices/voices/list
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 AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,672 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Richard Green 6 Reputation points
    2022-11-05T09:53:07.57+00:00

    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?

    Thanks,
    Richard

    1 person found this answer helpful.
    0 comments No comments

  2. Richard Green 6 Reputation points
    2022-11-05T09:35:39.19+00:00

    Hello @YutongTie-MSFT ,

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

    The following updates were recently installed:

    https://support.microsoft.com/en-gb/topic/october-11-2022-kb5018545-cumulative-update-for-net-framework-3-5-4-8-and-4-8-1-for-windows-10-version-21h2-9b10d12c-00c5-4938-bd21-8c407d644fea

    https://support.microsoft.com/en-gb/topic/october-11-2022-kb5018410-os-builds-19042-2130-19043-2130-and-19044-2130-6390f057-28ca-43d3-92ce-f4b79a8378fd

    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.

    Thanks,
    Richard

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.