Trained from the most diverse collection of voices in the world, Rev AI sets the accuracy standard for video and voice applications.
from rev_ai import apiclient as api | |
from rev_ai.models.customer_url_data import CustomerUrlData | |
# Create your client using your access token | |
access_token = "your access token here" | |
client = api.RevAiAPIClient(access_token) | |
# Submit an audio file to Rev AI | |
source_config = CustomerUrlData(url="https://www.rev.ai/FTC_Sample_1.mp3") | |
job = client.submit_job_url(source_config=url) | |
# Check your job's status | |
details = client.get_job_details(job.id); | |
# Retrieve your transcript | |
transcript = client.get_transcript_text(job.id) |
import { RevAiApiClient } from 'revai-node-sdk'; | |
// Initialize your client with your access token | |
const access_token = "your access token here"; | |
const client = new RevAiApiClient(access_token); | |
// Submit an audio file to Rev AI | |
const options = { source_config: { url: "https://www.rev.ai/FTC_Sample_1.mp3" } }; | |
const job = await client.submitJob(options); | |
// Check your job's status | |
const details = await client.getJobDetails(job.id); | |
// Retrieve transcript | |
const transcript = await client.getTranscriptText(job.id); |
$ 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 ${ACCESS_TOKEN}" \ | |
-H "Content-Type: application/json" \ | |
-d "{'source_config':{'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" |