Back to Ai

AI SDK - Rev.ai Provider

packages/revai/README.md

2.1.101.1 KB
Original Source

AI SDK - Rev.ai Provider

The Rev.ai provider for the AI SDK contains language model support for the Rev.ai transcription API.

Setup

The Rev.ai provider is available in the @ai-sdk/revai module. You can install it with

bash
npm i @ai-sdk/revai

Skill for Coding Agents

If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:

shell
npx skills add vercel/ai

Provider Instance

You can import the default provider instance revai from @ai-sdk/revai:

ts
import { revai } from '@ai-sdk/revai';

Example

ts
import { revai } from '@ai-sdk/revai';
import { experimental_transcribe as transcribe } from 'ai';

const { text } = await transcribe({
  model: revai.transcription('machine'),
  audio: new URL(
    'https://github.com/vercel/ai/raw/refs/heads/main/examples/ai-functions/data/galileo.mp3',
  ),
});

Documentation

Please check out the Rev.ai provider documentation for more information.