Skip to content

Commit 633b817

Browse files
DevRohit06claude
andcommitted
feat(stt): default Deepgram to nova-3 + multi-language, configurable via env
Bumps the default Deepgram streaming model from nova-2 to nova-3 and the default language from English-only to "multi" so meeting transcription works out of the box for non-English speakers. Both are now overridable without code changes via DISCLI_DEEPGRAM_MODEL and DISCLI_DEEPGRAM_LANGUAGE. Version: 0.9.0 -> 0.9.1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5314642 commit 633b817

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "discord-cli-agent"
7-
version = "0.9.0"
7+
version = "0.9.1"
88
description = "Discord CLI for AI agents"
99
readme = "README.md"
1010
license = "MIT"

src/discli/stt.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ async def stream_session(
7676
*,
7777
sample_rate: int = 48000,
7878
channels: int = 1,
79-
model: str = "nova-2",
79+
model: str | None = None,
80+
language: str | None = None,
8081
) -> AsyncIterator[TranscriptionResult]:
8182
"""Stream audio to Deepgram's live transcription websocket and yield
8283
``TranscriptionResult`` objects as they arrive.
@@ -97,8 +98,14 @@ async def stream_session(
9798
import json as _json
9899
from urllib.parse import urlencode
99100

101+
if model is None:
102+
model = os.environ.get("DISCLI_DEEPGRAM_MODEL", "nova-3")
103+
if language is None:
104+
language = os.environ.get("DISCLI_DEEPGRAM_LANGUAGE", "multi")
105+
100106
params = {
101107
"model": model,
108+
"language": language,
102109
"encoding": "linear16",
103110
"sample_rate": str(sample_rate),
104111
"channels": str(channels),

uv.lock

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)