SpeakSsmlAsync is cancelled, but SpeakTextAsync is successfull

One More Henry 20 Reputation points

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,548 questions
{count} votes

Accepted answer
  1. navba-MSFT 20,560 Reputation points Microsoft Employee

    @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>
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful