Hello @Adrien Adrien , Thanks for using Microsoft Q&A Platform.
I have reproduced the same on my end it worked successfully. Here is the sample command:
curl --location --request POST "https://region.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US&format=detailed" ^
--header "Ocp-Apim-Subscription-Key: key" ^
--header "Content-Type: audio/wav" ^
--data-binary "@whatstheweatherlike.wav"
Response:
{"RecognitionStatus":"Success","Offset":1100000,"Duration":13200000,"NBest":[{"Confidence":0.9931853,"Lexical":"what's the weather like","ITN":"what's the weather like","MaskedITN":"what's the weather like","Display":"What's the weather like?"}],"DisplayText":"What's the weather like?"}
The issue with your command is missing '@'
character before the audio file path[
--data-binary "@whatstheweatherlike.wav"] or --data-binary "@c:\directory\whatstheweatherlike.wav"
Try to add this to your code it should work. Here is the sample code: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-speech-to-text?tabs=windows%2Cterminal&pivots=programming-language-rest#recognize-speech-from-a-file
I hope this helps. Please let us know if you still face issues.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.