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> |
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
# import rev_ai and create your client using your access token. | |
from rev_ai import apiclient as api | |
YOUR_ACCESS_TOKEN = "your access token here" | |
client = api.RevAiAPIClient(YOUR_ACCESS_TOKEN) | |
# send an audio file to rev.ai | |
job = client.submit_job_url("https://www.rev.ai/FTC_Sample_1.mp3") | |
# retrieve your transcript |
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
import subprocess | |
import argparse | |
import os | |
import boto3 | |
import urllib | |
from urllib.request import urlopen | |
import datetime | |
from datetime import datetime | |
s3 = boto3.client('s3') |