aisdk/deepgram

Official Deepgram provider for the PHP AI SDK.

Maintainers

Package info

github.com/phpaisdk/deepgram

pkg:composer/aisdk/deepgram

Transparency log

Fund package maintenance!

Open Collective

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.8.1 2026-07-22 06:53 UTC

This package is auto-updated.

Last update: 2026-07-22 06:53:10 UTC


README

GitHub Workflow Status Latest Version License

Official Deepgram provider for the PHP AI SDK. Uses Deepgram's native pre-recorded speech-to-text API.

Installation

composer require aisdk/deepgram

Basic Usage

use AiSdk\Content;
use AiSdk\Deepgram;
use AiSdk\Generate;

Deepgram::create(['apiKey' => $_ENV['DEEPGRAM_API_KEY']]);

$result = Generate::transcription()
    ->model(Deepgram::model('nova-3'))
    ->audio(Content::audio('https://example.com/audio.mp3'))
    ->run();

Configuration

Variable Description Default
DEEPGRAM_API_KEY API key for authentication Required
DEEPGRAM_BASE_URL Base URL for API requests https://api.deepgram.com

Supported Capabilities

Capability Support
Pre-recorded transcription Native /v1/listen
Remote audio URLs Native
Local audio files Native binary request
Word timing and speakers Parsed when provided by Deepgram

Use providerOptions('deepgram', [...]) for Deepgram listen query parameters such as smart_format, diarize, or language.

Documentation