Can't request from Azure text-to-speech API using curl RRS feed

  • Question

  • I followed tutorial on text-to-speech REST API to request text-to-speech using curl. I successfully requested access token. But the actual service request gets empty response:

    curl -v -H "X-Microsoft-OutputFormat: raw-16khz-16bit-mono-pcm" -H "Content-Type: application/ssml+xml" -H "Host:" -H "Content-Length: 225" -H "Authorization: Bearer [access token]" -d "<speak version='1.0' xml:lang='en-US'><voice xml:lang='en-US' xml:gender='Female' name='en-US-AriaRUS'> Microsoft Speech Service Text-to-Speech API </voice></speak>" -X POST ""

    Wednesday, June 10, 2020 5:01 PM