Skip to content

Instantly share code, notes, and snippets.

@buddyeorl
Created November 1, 2020 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buddyeorl/da055f102d72316e67d2aa3120630cf5 to your computer and use it in GitHub Desktop.
Save buddyeorl/da055f102d72316e67d2aa3120630cf5 to your computer and use it in GitHub Desktop.

API calls to

https://deep-talk.azurewebsites.net/api/v1/getVoice

POST requests accepts 16kHZ mono 16bits WAV audio files in multipart form data,the field name should be 'audio'

sample responses:

No audio file:

{
    "message": "No audio file has been received"
}

No recognition:

{
    "error": "No speech was recognized"
}

Success:

{
    "message": "success",
    "data": "two three"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment