# misolabsai/misotts — AlpLab Radar Static Code Audit

- Ring: `watch`
- Category: `ai-models`
- Overall score: `2.7/5`
- Implementation check: `verified`
- Maturity: `dormant`
- Audited commit: `cd7dde13dbfe` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T11:15:53Z
- Repository: https://github.com/misolabsai/misotts
- Radar entry: https://radar.alplab.co/#repo/misolabsai/misotts
- License: `NOASSERTION`
- Tags: `text-to-speech`, `pytorch`, `audio`, `watermarking`, `huggingface`

## Summary

Local inference code for an 8B text-to-dialogue model that generates Mimi audio codes, decodes them, and applies SilentCipher watermarking.

## Implementation Check

README.md's local inference and prompted-generation claims map to generator.py `load_miso_8b` and `Generator.generate`, with the example wired in run_misotts.py `main`.

## When to Use

Use for a bounded, GPU-equipped evaluation of English conversational TTS and audio-conditioned prompting. Do not rely on it for low-latency local serving or production deployment without testing resource use and output controls.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 3.5/5 |
| usability | 2.5/5 |
| reliability | 2.0/5 |
| security | 3.0/5 |
| integration | 2.5/5 |

## Code Evidence

- generator.py `Generator.generate` tokenizes text and optional audio context, autoregressively samples frames, and decodes audio.
- models.py `Model.generate_frame` implements an 8B Llama-style backbone plus per-codebook autoregressive decoder.
- generator.py `_load_model` resolves local checkpoints or downloads `model.safetensors` through `hf_hub_download`.
- watermarking.py `watermark` applies SilentCipher encoding before generated audio is returned.
- run_misotts.py `main` generates a multi-speaker conversation and writes `full_conversation.wav`.

## Issues Found

- watermarking.py `MISO_TTS_WATERMARK` uses a fixed all-zero default key, so default outputs do not use a deployment-specific secret watermark key.
- README.md:36 recommends `curl -LsSf https://astral.sh/uv/install.sh | sh`, an unverified remote installer pipeline.

## Key Risks

- README.md states local inference needs roughly 24 GB VRAM in bf16 and 30–40 GB of first-run downloads.
- generator.py `Generator` downloads the Llama tokenizer, Mimi codec, model weights, and SilentCipher model from external sources.
- No test files or CI workflows were present in the repository tree.
- LICENSE adds a UI-attribution condition for large commercial products rather than providing standard MIT terms.

## Reviewed Files

- `README.md`
- `pyproject.toml`
- `run_misotts.py`
- `generator.py`
- `models.py`
- `watermarking.py`
- `LICENSE`
- `moshi_compat.py`
