Skip to content
providerkit
GitHub

createTranscriptionProvider

function createTranscriptionProvider(id, config): TranscriptionProvider;

Defined in: core/src/providers/transcription-factory.ts:39

Build a transcription provider for a preset that can transcribe. A preset without a transcription row throws, naming the ones that do (TRANSCRIPTION_PRESET_IDS). Deepgram is not a chat preset: createDeepgramTranscriptionProvider builds it.

const listen = createTranscriptionProvider("openai", { apiKey });
const { text } = await listen.transcribe({ audio: file });
Parameter Type
id | "openrouter" | "openai" | "anthropic" | "google" | "google-openai" | "deepseek" | "groq" | "mistral" | "xai" | "together" | "fireworks" | "cerebras" | "moonshot" | "zhipu" | "minimax" | "minimax-openai" | "nvidia" | "perplexity" | "deepinfra" | "nebius" | "novita" | "chutes" | "siliconflow" | "volcengine" | "stepfun" | "digitalocean" | "crusoe" | "baseten" | "huggingface" | "zai" | "zai-openai" | "opencode-go" | "qwen" | "opencode-zen" | "kimi" | "kimi-openai" | "alibaba-coding-plan" | "qwen-token-plan-openai" | "alibaba" | "qwen-api" | "ollama" | "lmstudio" | "vllm" | "claude" | "chatgpt" | "grok" | "kimi-plan" | "github-copilot" | "antigravity"
config TranscriptionProviderConfig

TranscriptionProvider