How to get output from tts long audio API it return success but without output?
I'm trying to export long audio through the REST API, the API return success 200 without output!? any idea how to fix the issue?
note: ssml language is ar-SA - ar-SA-HamedNeural (Male)
curl --location 'https://eastus.customvoice.api.speech.microsoft.com/cognitiveservices/v1' \ --header 'Content-Type: application/ssml+xml' \ --header 'X-Microsoft-OutputFormat: riff-24khz-16bit-mono-pcm' \ --header 'User-Agent: postman' \ --header Bearer valid token --data valid ssml
Hi @mousa alshaikh , Thanks for using Microsoft Q&A Platform.
We are not completely sure about your output expectations. Have you specified the details in handling the output response? For suppose here is the
curlcommand to get the output and save it to a file named
Check that the output format you are requesting is supported. The Long Audio API supports several output formats, including WAV, MP3, and OGG. Make sure that you are requesting a supported format.
curl --location 'https://eastus.customvoice.api.speech.microsoft.com/cognitiveservices/v1 ... --output 'output.wav'
Please try this and let us know if you still face issue.
I hope this helps.
Thanks for your response , I'm using postman and it already handle output for short audio: see the below screenshot
also, I've tried long audio curl on the terminal with > output.mp3 and I got the file with 0B : see the below screenshot
Sign in to comment