SpeakSsmlAsync is cancelled, but SpeakTextAsync is successfull

One More Henry 20 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,548 questions
{count} votes

Accepted answer
  1. navba-MSFT 20,560 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>
    
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful