Text to Speech does not work using Local CMD/Powershell

dropdown 116 Reputation points
2020-10-19T10:25:39.997+00:00

Hello, I am trying to convert text to speech through Azure's Speech Service, using my local PC's CLI.

After i sucessffully logged in through the relevant CMDLET (Connect-AzAccount), i hit the following commands:

.\spx synthesize --nodefaults --region MYREGION --key MYKEY--text "This is a test"
.\spx synthesize --text "Testing synthesis using the Speech CLI" --speakers

and i get the following errors:

SYNTHESIS STARTED: a1320f4cf3044d409454e6e4d1132122

CANCELED: Reason=Error
CANCELED: ErrorCode=NoError
CANCELED: ErrorDetails=USP error, timeout to get the first audio chunk.
CANCELED: Did you update the subscription info?

I also contacted Azure's support through the chatting service and confirmed that there aren't any issues regarding my subscription (Free).

Thanks in advance.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,519 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,583 questions
{count} votes

Accepted answer
  1. dropdown 116 Reputation points
    2020-10-21T10:51:56.843+00:00

    Ok, resolved!

    I had created a subscription config on cmd but had not on powershell.

    So, i did subscribe on powershell with the relevant commands written in the article you referred to and now it works great!

    Thanks @GiftA-MSFT !

    PS: Please note that both the following commands produce an error when run on powershell:

    spx config @key --set SUBSCRIPTION-KEY  
    spx config @region --set REGION  
    

    ,so in order to resolve use the following:

    spx config --set key=SUBSCRIPTION-KEY  
    spx config --set regio=REGION  
    

0 additional answers

Sort by: Most helpful