---
title: "Voxtral Realtime Speech to Text in Node.js | Micdrop"
description: "Transcribe the user in real time with Voxtral Mini Transcribe Realtime 3 from your Node server, in more than 40 languages, for $0.008 per minute."
url: "https://micdrop.dev/docs/speech-to-text/mistral"
---

# Voxtral Realtime Speech to Text in Node.js

Real-time transcription with Voxtral Mini Transcribe Realtime 3, in more than 40 languages, with a final transcript in under half a second. It costs $0.008 per minute. `MistralSTT` connects to Mistral’s global endpoint, so pick Gladia or Gradium when the audio has to stay in the EU.

Voxtral also runs on its own. With `stt` as the server’s only option, you get [a dictation tool](/docs/server/dictation) that transcribes each sentence and stays quiet.

## Installation

```bash
npm install @micdrop/mistral
```

The same package also provides [an agent](/docs/agents/mistral) and [a text to speech](/docs/text-to-speech/mistral). The [providers page](/docs/providers) shows what every provider covers.

## Usage with MicdropServer

```typescript
import { MistralSTT } from '@micdrop/mistral'
import { MicdropServer } from '@micdrop/server'

const stt = new MistralSTT({
  apiKey: process.env.MISTRAL_API_KEY || '',
})

// Use with MicdropServer
new MicdropServer(socket, {
  stt,
  // ... other options
})
```

## Usage without MicdropServer

```typescript
import { MistralSTT } from '@micdrop/mistral'
import { createReadStream } from 'fs'

const stt = new MistralSTT({
  apiKey: process.env.MISTRAL_API_KEY || '',
})

stt.on('Transcript', (text) => console.log('Transcript:', text))
stt.on('Failed', (chunks) => console.error('Failed:', chunks.length, 'chunks'))

// Audio is raw PCM, 16 bits, 16 kHz, mono
stt.transcribe(createReadStream('speech.pcm'))
```

## Events

Event

Payload

Description

`Transcript`

`string`

Transcription of one utterance. The text is empty when nothing was recognized.

`Failed`

`Buffer[]`

Transcription gave up after its retries, with the audio chunks left pending.

See the [STT interface](/docs/speech-to-text/custom) for the full contract.

## Options

Option

Type

Default

Description

`apiKey`

`string`

Required

Your Mistral AI API key

`model`

`string`

`'voxtral-mini-transcribe-realtime-3-0'`

Realtime transcription model to use

`encoding`

`MistralAudioEncoding`

`'pcm_s16le'`

Audio encoding of the incoming stream

`targetStreamingDelayMs`

`number`

Optional

Target streaming delay in milliseconds

`connectionTimeout`

`number`

`5000`

Timeout in milliseconds for WebSocket connection

`transcriptionTimeout`

`number`

`4000`

Timeout in milliseconds to wait for transcription

`retryDelay`

`number`

`1000`

Delay in milliseconds between reconnection attempts

`maxRetry`

`number`

`3`

Maximum number of reconnection attempts before failing

Each stream given to `transcribe()` is one utterance and gets exactly one `Transcript` event, sent when Mistral finalizes the utterance after its flush. With no answer within `transcriptionTimeout`, the utterance is emitted with the text received so far, and the late answer is discarded so it never lands on the next utterance.

A connection that drops, even a clean close by Mistral, is opened again within a budget of `maxRetry` attempts in a row, `retryDelay` apart, and the audio of every utterance still waiting for its transcript is sent again. Once the budget runs out, `Failed` hands that audio back, and the next utterance tries to connect again.

The Micdrop client streams 16kHz PCM16 mono audio, which matches Voxtral’s default input format, so no resampling is required.

The previous model, `voxtral-mini-transcribe-realtime-2602`, still works through the `model` option.
