Skip to main content

Mistral Voxtral STT integration for Vision Agents

Project description

Mistral Voxtral STT Plugin

Mistral Voxtral realtime speech-to-text integration for Vision Agents.

Features

  • Real-time speech recognition via WebSocket streaming
  • Low-latency transcription using Voxtral models
  • Automatic language detection
  • Partial transcript streaming for responsive UX
  • Sentence-level final transcripts (triggered by ., ?, !)

Installation

uv add vision-agents[mistral]

Usage

from vision_agents.core import Agent, Runner, User
from vision_agents.core.agents import AgentLauncher
from vision_agents.plugins import deepgram, gemini, getstream, mistral


async def create_agent(**kwargs) -> Agent:
    return Agent(
        edge=getstream.Edge(),
        agent_user=User(name="Assistant", id="agent"),
        instructions="You're a helpful voice AI assistant. Keep replies short and conversational.",
        stt=mistral.STT(),
        tts=deepgram.TTS(),
        llm=gemini.LLM("gemini-2.0-flash"),
    )


async def join_call(agent: Agent, call_type: str, call_id: str, **kwargs) -> None:
    await agent.create_user()
    call = await agent.create_call(call_type, call_id)

    async with agent.join(call):
        await agent.run()


if __name__ == "__main__":
    Runner(AgentLauncher(create_agent=create_agent, join_call=join_call)).cli()

Run with:

uv run plugins/mistral/example/mistral_stt_example.py run

Turn Detection

Mistral Voxtral STT does not include built-in turn detection (turn_detection=False). You'll need to pair it with an external turn detection plugin.

Configuration

Parameter Description Default
api_key Mistral API key MISTRAL_API_KEY env var
model Model identifier voxtral-mini-transcribe-realtime-2602
sample_rate Audio sample rate (Hz): 8000, 16000, 22050, 44100, 48000 16000
client Pre-configured Mistral client None

Events

The plugin emits standard STT events:

  • STTTranscriptEvent: Final transcript (emitted at sentence boundaries or stream end)
  • STTPartialTranscriptEvent: Partial word/delta as transcription streams

Dependencies

  • mistralai[realtime]>=1.12.0
  • vision-agents

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_agents_plugins_mistral-0.3.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vision_agents_plugins_mistral-0.3.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file vision_agents_plugins_mistral-0.3.3.tar.gz.

File metadata

File hashes

Hashes for vision_agents_plugins_mistral-0.3.3.tar.gz
Algorithm Hash digest
SHA256 f42aaf6c9943993992468c85c28cf3896031b7e9a5c4d35481db689aae01458a
MD5 85faa030cbb272171854b04cc909c68c
BLAKE2b-256 0d1e39d4e746d777eb7bfa8a416f1fcee3fdbaf0e193c938ea37d3593697d08c

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_mistral-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for vision_agents_plugins_mistral-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b20c8be06b2c964f42758d8c2d08a3ca67397ead36b11bde32db029ddebe33b6
MD5 6c00ef6431f36f795819a5e06367e587
BLAKE2b-256 211740ef2aad561a088d63d428fbb26a9512072f8154dc1fe56047b5b823df94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page