0

I am using the cognitive services using Postman API but the display text is not appearing. output after adding all the parameter

params- language: en-US

headers: Ocp-Apim-Subscription-Key: key Content-Type: audio/wav

body- binary: selected file

Authorization- bearer Token: Token generated from cognitive service

I have changed the content-Type as audio/mp4, audio/mp3, audio/vnd.wave and changed the video length and as well converted to audio.

Rukmini
  • 6,015
  • 2
  • 4
  • 14

1 Answers1

1

I tried in my environment and got the below results:

Initially, I got the same response when I tried with the mp3 file format.

enter image description here

According to this MS-DOCS the audio format either may be WAV or OGG .

When I tried with WAV file format in Postman it executed with text successfully.

enter image description here

For Mp3 and other compressed input audio, you need to use Speech SDK.

Reference: How to use compressed input audio - Speech service - Azure Cognitive Services | Microsoft Learn

Sourav
  • 814
  • 1
  • 9