feat(transcription): add AssemblyAI as transcription provider
Add AssemblyAI as a third transcription provider option alongside OpenAI and Groq. AssemblyAI offers better accuracy for certain audio types (distant voices, noisy environments) and serves as a reliable fallback when other providers struggle. Changes: - Add AssemblyAITranscriptionProvider class in providers/transcription.py - Add 'assemblyai' option in base channel's transcribe_audio() - Per-channel configuration via transcriptionProvider in config Usage: Set transcriptionProvider: 'assemblyai' and provide an AssemblyAI API key via transcriptionApiKey in the channel config.
This commit is contained in:
1 parent
f183b37542
commit
f3eb2aa08b
17 files changed
+780
-113
No files matched your search
@@ -60,6 +60,9 @@ class ProviderSpec:
|
||||
# Direct providers skip API-key validation (user supplies everything)
|
||||
is_direct: bool = False
|
||||
|
||||
# Provider is listed for shared credentials but cannot serve chat completions.
|
||||
is_transcription_only: bool = False
|
||||
|
||||
# Provider supports cache_control on content blocks (e.g. Anthropic prompt caching)
|
||||
supports_prompt_caching: bool = False
|
||||
|
||||
@@ -507,6 +510,17 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
|
||||
backend="openai_compat",
|
||||
default_api_base="https://api.groq.com/openai/v1",
|
||||
),
|
||||
# AssemblyAI: voice transcription only. It appears in provider settings so
|
||||
# users can manage credentials, but WebUI excludes it from chat model pickers.
|
||||
ProviderSpec(
|
||||
name="assemblyai",
|
||||
keywords=("assemblyai",),
|
||||
env_key="ASSEMBLYAI_API_KEY",
|
||||
display_name="AssemblyAI",
|
||||
backend="openai_compat",
|
||||
default_api_base="https://api.assemblyai.com/v2",
|
||||
is_transcription_only=True,
|
||||
),
|
||||
# Qianfan (百度千帆): OpenAI-compatible API
|
||||
ProviderSpec(
|
||||
name="qianfan",
|
||||
|
||||
Reference in new issue
Block a user