@ai-sdk/assemblyai
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

AI SDK - AssemblyAI Provider

The AssemblyAI provider for the AI SDK contains transcription model support for the AssemblyAI transcription API.

Setup

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

npm i @ai-sdk/assemblyai

Provider Instance

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

import { assemblyai } from '@ai-sdk/assemblyai';

Example

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

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

Documentation

Please check out the AssemblyAI provider documentation for more information.

Dependencies (2)

Dev Dependencies (5)

Package Sidebar

Install

npm i @ai-sdk/assemblyai

Weekly Downloads

363

Version

1.0.1

License

Apache-2.0

Unpacked Size

88.2 kB

Total Files

10

Last publish

Collaborators

  • jaredpalmer
  • vercel-release-bot