Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from .models import (
OpenRouterProviderPreferences,
OpenRouterWebPlugin,
STTDelay,
STTModels,
TTSModels,
TTSVoices,
Expand All @@ -44,6 +45,7 @@
"LLMStream",
"OpenRouterProviderPreferences",
"OpenRouterWebPlugin",
"STTDelay",
"STTModels",
"TTSModels",
"TTSVoices",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
from openai.types import AudioModel

STTModels = AudioModel
STTDelay = Literal["minimal", "low", "medium", "high", "xhigh"]
"""How long a streaming transcription model waits before emitting text.

Higher values give the model more audio context and can improve accuracy at the cost of
latency. See https://developers.openai.com/api/docs/guides/realtime-transcription
"""
TTSModels = Literal["tts-1", "tts-1-hd", "gpt-4o-mini-tts"]
TTSVoices = Literal[
"alloy",
Expand Down
Loading