BerriAI/litellm · error · RuntimeError
Rust audio transcription bridge is unavailable
Error message
Rust audio transcription bridge is unavailable
What it means
Environment guard in the Bedrock Rust transcription bridge: the rust_transcription_bridge module (optional compiled extension) is not available in this installation, so transcription cannot be dispatched to the Rust core and the Python path must be used or the dependency installed.
Solutions
- Install the optional Rust transcription bridge dependency required by this feature.
- Use the standard (non-Rust) Bedrock transcription path.
- Rebuild/upgrade litellm so the Rust extension is included.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at litellm/llms/bedrock/audio_transcription/__init__.py:57 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/fb7f1840a7ca3919.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/bedrock/audio_transcription/__init__.py:57
api_key: str | None,
api_base: str | None,
custom_llm_provider: str,
extra_headers: dict[str, object] | None,
optional_params: dict[str, object],
timeout: float | httpx.Timeout | None,
) -> TranscriptionResponse:
rust_response: Final = rust_transcription_bridge.transcription(
model=model,
audio=self._audio_payload(audio_file),
api_key=api_key,
api_base=api_base,
custom_llm_provider=custom_llm_provider,
extra_headers=extra_headers,
optional_params=optional_params,
timeout=timeout,
)
if rust_response is None:
raise RuntimeError("Rust audio transcription bridge is unavailable")
return TranscriptionResponse(**rust_response)
async def async_audio_transcriptions(
self,
*,
model: str,
audio_file: FileTypes,
api_key: str | None,
api_base: str | None,
custom_llm_provider: str,
extra_headers: dict[str, object] | None,
optional_params: dict[str, object],
timeout: float | httpx.Timeout | None,
) -> TranscriptionResponse:
rust_response: Final = await rust_transcription_bridge.atranscription(
model=model,
audio=self._audio_payload(audio_file),
api_key=api_key,View on GitHub (pinned to 77b7c6c40c)