Skip to content

Instantly share code, notes, and snippets.

@kbridbur
Last active February 18, 2019 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kbridbur/f18bdfb464b9d65fb87fa808755ab256 to your computer and use it in GitHub Desktop.
Save kbridbur/f18bdfb464b9d65fb87fa808755ab256 to your computer and use it in GitHub Desktop.
Use the Rev.ai API with curl!
// Send an audio file to Rev.ai
curl -X POST "https://api.rev.ai/revspeech/v1beta/jobs"
-H "Authorization: Bearer <access_token>"
-H "Content-Type: application/json"
-d "{\"media_url\":\"rev.cm/FTC_Sample_1_-_Single"}"
// Retrieve your transcript
curl -X GET "https://api.rev.ai/revspeech/v1beta/jobs/{id}/transcript"
-H "Authorization: Bearer <access_token>"
-H "Accept: application/vnd.rev.transcript.v1.0+json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment