Official Node.js SDK for the Rev AI speech-to-text API, enabling automatic speech recognition with features like async transcription, custom vocabulary, speaker diarization, language selection, summarization, and translation. Current stable version is 3.8.5, released under a regular cadence. Key differentiators include support for multiple input types (local files, URLs, audio streams), human transcription option, global deployment configuration, and full TypeScript typings. The SDK wraps Rev AI's REST API for job submission and retrieval.
npm install revai-node-sdkVerified import paths — ran on the pinned version, not inferred.
Initializes a Rev AI client with an access token, submits a local audio file for transcription, and retrieves the result.
Change `new RevAiApiClient(token)` to `new RevAiApiClient({ token })`. Provide deployment config if needed.Use `getTranscriptObject(jobId)` and access structured fields.
Use `submitJobAudioData(stream, filename)` for streams.
Always include `source_config: { url: '...' }` when using `submitJob` with a URL.Use Node 12 or later, preferably 16 or 18.
Set `"type": "module"` in package.json, or use dynamic import: `const { RevAiApiClient } = await import('revai-node-sdk')`.Use `import { RevAiApiClient } from 'revai-node-sdk'` instead of `import RevAiApiClient from 'revai-node-sdk'`.Provide `deploymentConfig: RevAiApiDeploymentConfigMap.get(RevAiApiDeployment.US)` or other deployment.
Check the access token on your Rev AI settings page and ensure it is correctly passed to the client.