Skip to content

Instantly share code, notes, and snippets.

@JordanDalton
Created December 10, 2016 19:20
Show Gist options
  • Save JordanDalton/b2488cc840021b017df9a68120323e7e to your computer and use it in GitHub Desktop.
Save JordanDalton/b2488cc840021b017df9a68120323e7e to your computer and use it in GitHub Desktop.
A working curl request for IBM speech to text
curl -X POST -u "{username}":"{password}" --header "Content-Type: audio/wav;codec=pcm;bit=16;rate=16000" --header "Accept: application/json" --header "Transfer-Encoding: chunked" --data-binary @file.wav "https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?model=en-US_NarrowbandModel&speaker_labels=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment