-
-
Save kelly-liu/397939809560780b2c32d8263a594a01 to your computer and use it in GitHub Desktop.
Use the Rev.ai API with curl!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ YOUR_ACCESS_TOKEN=<your access token here> | |
# Send an audio file to Rev.ai | |
$ curl -X POST https://api.rev.ai/speechtotext/v1/jobs \ | |
-H "Authorization: Bearer ${YOUR_ACCESS_TOKEN}" \ | |
-H "Content-Type: application/json" \ | |
-d "{'media_url':'https://www.rev.ai/FTC_Sample_1.mp3'}" | |
# Retrieve your transcript | |
$ ID=<your job id here> | |
$ curl -X GET https://api.rev.ai/speechtotext/v1/jobs/${ID}/transcript \ | |
-H "Authorization: Bearer ${YOUR_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