Explore Watson STT API
For this section, you will be exploring the Watson Speech to Text API from the API documentation.
Audio formats
audio/alaw, audio/basic, audio/flac, audio/g729, audio/l16, audio/mp3, audio/mpeg, audio/mulaw, audio/ogg, audio/ogg;codecs=opus, audio/ogg;codecs=vorbis, audio/wav, audio/webm, audio/webm;codecs=opus, audio/webm;codecs=vorbis
Get the List of Models
curl -X GET -u "apikey:{apikey}" "{url}/v1/models/en-US_BroadbandModel"
Sample Request
(download sample file audio-file2.flac or replace the type and file name with your own files)
curl -X POST -u "apikey:{apikey}" --header "Content-Type: audio/flac" --data-binary @audio-file2.flac "{url}/v1/recognize?word_alternatives_threshold=0.9&keywords=colorado%2Ctornado%2Ctornadoes&keywords_threshold=0.5"
Last updated
Was this helpful?