Skip to content

API Reference parrot.voice.transcriber.models

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.voice.transcriber.models

View source

Voice Transcription Data Models.

Pydantic models for voice transcription configuration and results. These models are shared across all integrations that support voice input.

Originally part of FEAT-008 (MS Teams Voice Note Support), refactored to shared location for FEAT-039.

Class TranscriberBackend

Available transcription backends.

  • FASTER_WHISPER: Local GPU-accelerated transcription using faster-whisper
  • OPENAI_WHISPER: Cloud-based transcription using OpenAI Whisper API
  • MOONSHINE: Opt-in sub-second local transcription using Moonshine ONNX models (added in FEAT-231)
  • GEMINI: Cloud-based transcription with a Gemini model through GoogleGenAIClient.transcribe_audio

Class TranscriptionResult

Result of voice transcription.

Contains the transcribed text along with metadata about the audio and processing.

Fields:

Field Type Default Description
text str Transcribed text
language str Detected or specified language code (ISO 639-1)
duration_seconds float Audio duration in seconds
confidence Optional[float] None Confidence score if available (0.0 to 1.0)
processing_time_ms int Transcription processing time in milliseconds

Class VoiceTranscriberConfig

Configuration for voice transcription.

Controls which backend to use, model settings, and behavior options.

Fields:

Field Type Default Description
enabled bool True Enable voice note processing
backend TranscriberBackend TranscriberBackend.FASTER_WHISPER Transcription backend to use
model_size str 'small' Whisper model size (tiny, base, small, medium, large-v3)
model Optional[str] None Model id for the gemini backend (e.g. 'gemini-3.8-flash'). None = backend default
language Optional[str] None Force language (ISO 639-1 code such as 'en', or a BCP-47 tag such as 'es-ES'; Whisper backends use only the primary subtag). None = auto-detect
show_transcription bool True Show transcription to user before processing
max_audio_duration_seconds int 60 Max audio duration to process (seconds)
openai_api_key Optional[str] None OpenAI API key (required if using openai_whisper backend)

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally