SpeakSsmlAsync is cancelled, but SpeakTextAsync is successfull

One More Henry 0 Reputation points
2024-06-28T11:57:49.3633333+00:00

I am trying out the Azure AI service to convert text to speech from a C# WPF application. My calls through SpeakTextAsync are successfull, but my calls through SpeakSsmlAsync are returned with the Reason = Cancelled.

I am on the free tier for South UK.

This is my SSML:

<speak version='1.0' xmlns='https://www.w3.org/2001/10/synthesis' xml:lang='en-GB'><voice name='en-GB-LibbyNeural'><s>This is a test message.</s></voice></speak>

I copied this SSML into the Speech Studio and it works.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,506 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 19,495 Reputation points Microsoft Employee
    2024-07-01T09:48:35.1966667+00:00

    @One More Henry Thanks for getting back. Could you please test with the below and check if that helps ?

    <speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="string" 
    xmlns:mstts="https://www.w3.org/2001/mstts"><voice name="en-GB-LibbyNeural">Hello World </voice></speak>