> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m-star.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Omnilingual ASR

> Transcribe speech in more than 1,600 languages without a language hint.

Use Omnilingual CTC when you need transcriptions across more than 1,600 languages without a language hint. Pick a 300M, 1B, 3B or 7B checkpoint for the same API.

## Install and start

The default loads v2 weights from Meta’s CDN. All four keys use one GPU. Start with the smallest key for a smoke test.

### `omnilingual_asr_ctc_300m`

Audio → text. The default `omnilingual_asr_ctc_300m.yaml` uses 1 GPU. The [weights](https://github.com/facebookresearch/omnilingual-asr) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[audio]"
mstar serve omnilingual_asr_ctc_300m
```

[Send the request](#transcribe).

### `omnilingual_asr_ctc_1b`

Audio → text. The default `omnilingual_asr_ctc_1b.yaml` uses 1 GPU. The [weights](https://github.com/facebookresearch/omnilingual-asr) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[audio]"
mstar serve omnilingual_asr_ctc_1b
```

[Send the request](#transcribe).

### `omnilingual_asr_ctc_3b`

Audio → text. The default `omnilingual_asr_ctc_3b.yaml` uses 1 GPU. The [weights](https://github.com/facebookresearch/omnilingual-asr) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[audio]"
mstar serve omnilingual_asr_ctc_3b
```

[Send the request](#transcribe).

### `omnilingual_asr_ctc_7b`

Audio → text. The default `omnilingual_asr_ctc_7b.yaml` uses 1 GPU. The [weights](https://github.com/facebookresearch/omnilingual-asr) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[audio]"
mstar serve omnilingual_asr_ctc_7b
```

[Send the request](#transcribe).

## Send a request

Run either client example in a second terminal after `/health` returns 200.

### Transcribe without a language code

Provide a recording as `speech.wav`. These CTC checkpoints do not need a language hint.

**Python SDK**

```python theme={null}
from mstar import MStarClient

client = MStarClient("http://localhost:8000")
print(client.transcribe("speech.wav"))
```

**curl**

```bash theme={null}
curl -fsS http://localhost:8000/v1/audio/transcriptions \
  -F file=@speech.wav -F response_format=text
```

## Deployment configs

| File | GPUs | Use |
| - | - | - |
| `omnilingual_asr_ctc_300m.yaml`, `_1b`, `_3b`, `_7b` | 1 | One config per size, one encoder node |

## Settings and defaults

Deployment `model_kwargs`:

| Knob | Default | Effect |
| - | - | - |
| `weights_version` | `v2` | `v1` loads the `facebook/omniASR-CTC-*` Hub checkpoints. |
| `checkpoint_path`, `tokenizer_path` | download | Local files instead. |
| `dtype` | `bfloat16` | The reference's inference dtype. `float32` also turns off TF32 for the node's matmuls. |
| `max_batch_size` | 16 | Requests in one step. |
| `max_batch_seconds` | 320 | Padded audio per forward (rows times the longest clip). A step past it is split. |

Request field: `window_seconds` (5 to 40). It sets both the whole-clip length and the window length for that request.

## Limits

* `/v1/audio/transcriptions` transcribes a clip of up to 20 s whole and cuts a longer one into the fewest windows of at most 16 s, each ending at a quiet moment. The model hears at most 40 s, and `/generate` refuses a longer clip with a 400.
* `language`, `prompt` and `temperature` have no effect; decoding is a per-frame argmax.
* No timestamps and no language detection. `srt` and `vtt` get one cue per window, `verbose_json` one segment per window, and its `language` is the request's `language` as given, or null.
* `/v1/realtime` is not supported.
* In bf16, a request batched with others can differ from the same request run alone where two characters nearly tie. `max_batch_size: 1` or `dtype: float32` give batch-invariant transcripts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.