🎉 ai-infra v1.0 is here — Production-ready AI/LLM infrastructure
What's new
nfrax logonfrax

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

nfrax logonfrax
Start HereWhat's New
GitHub
ai-infra / API Reference

STT

from ai_infra.llm import STT
View source
ai_infra.llm

Speech-to-Text with provider-agnostic API. Supports OpenAI Whisper, Google Cloud Speech-to-Text, and Deepgram. Auto-detects provider based on available API keys if not specified.

Constructor
STT(provider: str | None = None, model: str | None = None, language: str | None = None, api_key: str | None = None)
ParameterTypeDefaultDescription
providerstr|NoneNoneSTT provider ("openai", "google", "deepgram"). Auto-detected if None.
modelstr|NoneNoneModel name (provider-specific). Uses default if None.
languagestr|NoneNoneLanguage code (e.g., "en", "es"). Auto-detect if None.
api_keystr|NoneNoneAPI key (uses environment variable if None).

Methods

On This Page

Constructoratranscribeasynclist_modelsstaticlist_providersstaticstream_transcribetranscribetranscribe_file