[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111265":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":37,"discoverSource":38},111265,"speech-to-text-benchmark","modulate-ai\u002Fspeech-to-text-benchmark","modulate-ai","Reproducible speech-to-text benchmark: WER, latency and cost for Velma, Deepgram, AssemblyAI, Chirp 3, MAI-Transcribe 2, Moonshine and whisper.cpp on LibriSpeech, VoxPopuli and Common Voice.","https:\u002F\u002Fwww.modulate.ai\u002Fapi\u002Fspeech-to-text?utm_source=github&utm_medium=repo&utm_campaign=infrasity_m1_repo1&utm_content=repo_about_link",null,"Python",86,4,3,14,0,2,9,23,8,52.9,"MIT License",false,"main",[26,27,28,29,30,31,32],"asr","benchmark","speech-recognition","speech-to-text","transcription","velma","wer","2026-11-14 14:40:21","2026-11-23 15:34:38","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbanner.png\" alt=\"Speech-to-Text Benchmark\" width=\"100%\">\n\u003C\u002Fp>\n\n# Speech-to-Text Benchmark\n\nA reproducible comparison of nine speech-to-text engines on the same audio with the same scoring: [Velma Transcribe](https:\u002F\u002Fwww.modulate.ai\u002Fapi\u002Fspeech-to-text), Deepgram, AssemblyAI, Google Chirp 3 and Microsoft MAI-Transcribe 2 (hosted), and Moonshine and whisper.cpp (local). The layout follows [Picovoice's speech-to-text-benchmark](https:\u002F\u002Fgithub.com\u002FPicovoice\u002Fspeech-to-text-benchmark): one CLI, one file per engine, shared scoring, and results and plots checked into the repo.\n\n> The samples are small (20 files and 163 to 482 reference words per dataset), so a difference of one or two words moves WER by about 0.2 to 0.6 points. Read the numbers as indicative, not as a ranking.\n\n## Table of contents\n\n- [Data](#data)\n- [Metrics](#metrics)\n- [Engines and models](#engines-and-models)\n- [Usage](#usage)\n- [Results](#results)\n- [Text normalisation](#text-normalisation)\n- [Repository layout](#repository-layout)\n- [Limitations](#limitations)\n\n## Data\n\n20 English files per dataset. Audio is downloaded on demand into `datasets\u002Faudio\u002F` and is not committed. The files used are listed in `datasets\u002Fmanifests\u002F\u003Cdataset>.json`.\n\n| Dataset | Source | Slice | Audio | Reference words |\n|---|---|---|---|---|\n| LibriSpeech | `openslr\u002Flibrispeech_asr`, `clean`, `test` | first 20 | 164 s | 441 |\n| VoxPopuli | `facebook\u002Fvoxpopuli`, `en`, `test` | first 20 | 183 s | 482 |\n| Common Voice | `fixie-ai\u002Fcommon_voice_17_0`, `en`, `test` (parquet mirror of Common Voice 17) | first 20 | 108 s | 163 |\n\n## Metrics\n\n| Metric | Definition |\n|---|---|\n| WER | Word error rate with [`jiwer`](https:\u002F\u002Fgithub.com\u002Fjitsi\u002Fjiwer) over the whole slice, after [normalisation](#text-normalisation). |\n| Latency | Wall-clock seconds per file, reported as the mean and median over files. Hosted APIs include upload and server time. Local engines run on the test machine with no network. AssemblyAI is timed from the start of the upload to the finished transcript. |\n| USD per audio hour | The vendor's published batch price for the model used. |\n\nVelma, Deepgram and AssemblyAI are called 3 times per file and the latencies averaged. Chirp 3 and MAI-Transcribe 2 are called 2 times per file. Modulate's own account of how it benchmarks speech models is in its [benchmark methodology](https:\u002F\u002Fwww.modulate.ai\u002Fbenchmark-methodology?utm_source=github&utm_medium=repo&utm_campaign=infrasity_m1_repo1).\n\n## Engines and models\n\n| Engine | File | Model | Settings | USD per audio hour |\n|---|---|---|---|---|\n| Velma Transcribe | `engines\u002Fvelma.py` | `velma-2-stt-batch-english-vfast` | none | 0.025 ([pricing](https:\u002F\u002Fwww.modulate.ai\u002Fapi-pricing?utm_source=github&utm_medium=repo&utm_campaign=infrasity_m1_repo1)) |\n| Deepgram | `engines\u002Fdeepgram.py` | `nova-3` | `language=en`, `smart_format=true` | 0.258 ([pricing](https:\u002F\u002Fdeepgram.com\u002Fpricing)) |\n| AssemblyAI | `engines\u002Fassemblyai.py` | `universal-3-5-pro` | `language_code=en` | 0.21 ([pricing](https:\u002F\u002Fwww.assemblyai.com\u002Fpricing)) |\n| Google Chirp 3 | `engines\u002Fopenrouter_stt.py` | `google\u002Fchirp-3` via OpenRouter | `language=en` | 0.961 ([pricing](https:\u002F\u002Fopenrouter.ai\u002Fgoogle\u002Fchirp-3)) |\n| MAI-Transcribe 2 | `engines\u002Fopenrouter_stt.py` | `microsoft\u002Fmai-transcribe-2` via OpenRouter | `language=en` | 0.10 ([pricing](https:\u002F\u002Fopenrouter.ai\u002Fmicrosoft\u002Fmai-transcribe-2)) |\n| Moonshine Tiny | `engines\u002Fmoonshine_local.py` | `moonshine-ai\u002Fmoonshine-tiny`, local | Transformers, CPU | 0 |\n| Moonshine Base | `engines\u002Fmoonshine_local.py` | `moonshine-ai\u002Fmoonshine-base`, local | Transformers, CPU | 0 |\n| whisper.cpp tiny.en | `engines\u002Fwhisper_cpp_local.py` | `ggml-tiny.en.bin`, local | `whisper-server`, Metal | 0 |\n| whisper.cpp base.en | `engines\u002Fwhisper_cpp_local.py` | `ggml-base.en.bin`, local | `whisper-server`, Metal | 0 |\n\nHosted prices are pay-as-you-go batch rates from the vendors' pricing pages (October 2026). Local engines have no API charge; local compute is not counted.\n\nAPI references: [Velma](https:\u002F\u002Fdocs.modulate.ai\u002Fapi-reference\u002Fstt\u002Fbatch-english-vfast?utm_source=github&utm_medium=repo&utm_campaign=infrasity_m1_repo1), [Deepgram](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fpre-recorded-audio), [AssemblyAI](https:\u002F\u002Fwww.assemblyai.com\u002Fdocs\u002Fgetting-started\u002Ftranscribe-an-audio-file), [OpenRouter](https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fguides\u002Foverview\u002Fmultimodal\u002Fstt).\n\n## Usage\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fmodulate-ai\u002Fspeech-to-text-benchmark && cd speech-to-text-benchmark\npython3.11 -m venv .venv && source .venv\u002Fbin\u002Factivate   # Python 3.10 or newer\npip install -r requirements.txt\ncp .env.example .env     # set VELMA_API_KEY, DEEPGRAM_API_KEY, ASSEMBLYAI_API_KEY, OPENROUTER_API_KEY\n```\n\nKeys are read from the environment only. `.env` is git-ignored. To get a Velma key and make a first call, see the [Velma quickstart](https:\u002F\u002Fplatform.modulate.ai\u002Fapi?utm_source=github&utm_medium=repo&utm_campaign=infrasity_m1_repo1).\n\n```bash\n# 1. fetch the data slices (audio is git-ignored, manifests are committed)\npython download_datasets.py --dataset all --num-files 20\n\n# 2. run the engines\npython benchmark.py --engine velma deepgram assemblyai --dataset all --num-files 20 --repeats 3\npython benchmark.py --engine chirp_3 mai_transcribe_2 --dataset all --num-files 20 --repeats 2\npython benchmark.py --engine moonshine_tiny moonshine_base --dataset all --num-files 20 --repeats 3\n\n# local whisper.cpp: build it once, then set WHISPER_CPP_DIR in .env\ngit clone https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fwhisper.cpp && cd whisper.cpp\ncmake -B build && cmake --build build -j --config Release\nsh .\u002Fmodels\u002Fdownload-ggml-model.sh tiny.en && sh .\u002Fmodels\u002Fdownload-ggml-model.sh base.en\ncd .. && python benchmark.py --engine whisper_cpp_tiny whisper_cpp_base --dataset all --num-files 20 --repeats 3\n\n# 3. rebuild the tables and charts from results\u002Fsession.json\npython benchmark.py --report\n\n# tests (fake text, no API needed)\npython -m pytest\n```\n\n| Flag | Meaning |\n|---|---|\n| `--engine` | one or more engine names, for example `velma deepgram` |\n| `--dataset` | `librispeech`, `voxpopuli`, `commonvoice`, or `all` |\n| `--num-files` | files per dataset from the manifest (default 20) |\n| `--repeats` | calls per file, latency is averaged (default 3) |\n| `--report` | regenerate the tables in `results\u002F` and the charts in `results\u002Fplots\u002F` |\n\nEngines are called one after another for each file. Every call is cached in `results\u002Fcall_cache.jsonl` (git-ignored), so an interrupted run resumes where it stopped. A file that fails on any engine is excluded for every engine in that run and counted in the results. Running new engines adds them to `results\u002Fsession.json` without changing the engines already recorded. Close other applications during local runs, since their latency depends on machine load.\n\n## Results\n\nTested in October 2026 on macOS over a consumer internet connection.\n\n### Hosted APIs\n\n| Dataset | Engine | Model | Files | Excluded | WER % | Mean latency (s) | Median latency (s) | USD per audio hour |\n|---|---|---|---|---|---|---|---|---|\n| librispeech | velma | english-fast | 20 | 0 | 0.91 | 4.41 | 3.63 | 0.025 |\n| librispeech | deepgram | nova-3 | 20 | 0 | 2.72 | 3.79 | 2.78 | 0.258 |\n| librispeech | assemblyai | universal-3-5-pro | 20 | 0 | 1.81 | 8.34 | 6.68 | 0.21 |\n| librispeech | chirp_3 | google\u002Fchirp-3 | 20 | 0 | 2.04 | 5.13 | 4.58 | 0.961 |\n| librispeech | mai_transcribe_2 | microsoft\u002Fmai-transcribe-2 | 20 | 0 | 0.91 | 1.37 | 1.24 | 0.1 |\n| voxpopuli | velma | english-fast | 20 | 0 | 4.77 | 5.41 | 4.58 | 0.025 |\n| voxpopuli | deepgram | nova-3 | 20 | 0 | 8.3 | 5.85 | 3.91 | 0.258 |\n| voxpopuli | assemblyai | universal-3-5-pro | 20 | 0 | 8.3 | 9.53 | 7.02 | 0.21 |\n| voxpopuli | chirp_3 | google\u002Fchirp-3 | 20 | 0 | 9.13 | 5.47 | 5.04 | 0.961 |\n| voxpopuli | mai_transcribe_2 | microsoft\u002Fmai-transcribe-2 | 20 | 0 | 7.88 | 1.22 | 1.2 | 0.1 |\n| commonvoice | velma | english-fast | 20 | 0 | 9.2 | 4.69 | 3.93 | 0.025 |\n| commonvoice | deepgram | nova-3 | 20 | 0 | 12.27 | 4.5 | 4.52 | 0.258 |\n| commonvoice | assemblyai | universal-3-5-pro | 20 | 0 | 8.59 | 7.6 | 7.59 | 0.21 |\n| commonvoice | chirp_3 | google\u002Fchirp-3 | 20 | 0 | 11.04 | 4.28 | 4.37 | 0.961 |\n| commonvoice | mai_transcribe_2 | microsoft\u002Fmai-transcribe-2 | 20 | 0 | 8.59 | 1.11 | 1.1 | 0.1 |\n| overall | velma | english-fast | 60 | 0 | 3.87 | 4.83 | 4.0 | 0.025 |\n| overall | deepgram | nova-3 | 60 | 0 | 6.63 | 4.71 | 3.72 | 0.258 |\n| overall | assemblyai | universal-3-5-pro | 60 | 0 | 5.71 | 8.49 | 7.04 | 0.21 |\n| overall | chirp_3 | google\u002Fchirp-3 | 60 | 0 | 6.54 | 4.96 | 4.48 | 0.961 |\n| overall | mai_transcribe_2 | microsoft\u002Fmai-transcribe-2 | 60 | 0 | 5.16 | 1.23 | 1.13 | 0.1 |\n\n### Local engines\n\nMoonshine and whisper.cpp run on the test machine (Apple M1 Pro, 16 GB RAM, macOS), so their latency has no network time and is not comparable with the hosted latency above. Moonshine runs on the CPU and whisper.cpp (commit `60c0be6`) on the Metal GPU, with 3 repeats per file. WER can be compared across both tables, but the models differ in size and purpose.\n\n| Dataset | Engine | Model | Files | Excluded | WER % | Mean latency (s) | Median latency (s) | USD per audio hour |\n|---|---|---|---|---|---|---|---|---|\n| librispeech | moonshine_tiny | moonshine-ai\u002Fmoonshine-tiny | 20 | 0 | 2.49 | 0.17 | 0.13 | 0.0 |\n| librispeech | moonshine_base | moonshine-ai\u002Fmoonshine-base | 20 | 0 | 1.13 | 0.33 | 0.25 | 0.0 |\n| librispeech | whisper_cpp_tiny | ggml-tiny.en.bin (whisper.cpp) | 20 | 0 | 3.85 | 0.09 | 0.07 | 0.0 |\n| librispeech | whisper_cpp_base | ggml-base.en.bin (whisper.cpp) | 20 | 0 | 3.4 | 0.13 | 0.11 | 0.0 |\n| voxpopuli | moonshine_tiny | moonshine-ai\u002Fmoonshine-tiny | 20 | 0 | 14.52 | 0.18 | 0.19 | 0.0 |\n| voxpopuli | moonshine_base | moonshine-ai\u002Fmoonshine-base | 20 | 0 | 11.62 | 0.35 | 0.4 | 0.0 |\n| voxpopuli | whisper_cpp_tiny | ggml-tiny.en.bin (whisper.cpp) | 20 | 0 | 11.0 | 0.09 | 0.1 | 0.0 |\n| voxpopuli | whisper_cpp_base | ggml-base.en.bin (whisper.cpp) | 20 | 0 | 10.17 | 0.14 | 0.14 | 0.0 |\n| commonvoice | moonshine_tiny | moonshine-ai\u002Fmoonshine-tiny | 20 | 0 | 27.61 | 0.09 | 0.08 | 0.0 |\n| commonvoice | moonshine_base | moonshine-ai\u002Fmoonshine-base | 20 | 0 | 19.02 | 0.14 | 0.14 | 0.0 |\n| commonvoice | whisper_cpp_tiny | ggml-tiny.en.bin (whisper.cpp) | 20 | 0 | 25.15 | 0.06 | 0.06 | 0.0 |\n| commonvoice | whisper_cpp_base | ggml-base.en.bin (whisper.cpp) | 20 | 0 | 22.09 | 0.09 | 0.09 | 0.0 |\n| overall | moonshine_tiny | moonshine-ai\u002Fmoonshine-tiny | 60 | 0 | 11.6 | 0.15 | 0.11 | 0.0 |\n| overall | moonshine_base | moonshine-ai\u002Fmoonshine-base | 60 | 0 | 8.47 | 0.27 | 0.19 | 0.0 |\n| overall | whisper_cpp_tiny | ggml-tiny.en.bin (whisper.cpp) | 60 | 0 | 10.22 | 0.08 | 0.06 | 0.0 |\n| overall | whisper_cpp_base | ggml-base.en.bin (whisper.cpp) | 60 | 0 | 9.21 | 0.12 | 0.1 | 0.0 |\n\nMachine-readable: [`results\u002Fresults.csv`](results\u002Fresults.csv), [`results\u002Fresults.md`](results\u002Fresults.md), [`results\u002Fsession.json`](results\u002Fsession.json). Per-file transcripts and latencies: `results\u002F\u003Cengine>_\u003Cdataset>.json`.\n\n### Charts\n\nA filled dot marks a hosted API and a ring marks a local engine; local engines also show their model size on disk.\n\n![Word error rate](results\u002Fplots\u002Fwer.png)\n\n![Latency](results\u002Fplots\u002Flatency.png)\n\n![Word error rate against latency](results\u002Fplots\u002Fwer_vs_latency.png)\n\n![Cost per audio hour](results\u002Fplots\u002Fcost_per_hour.png)\n\nPer dataset: [`wer_by_dataset.png`](results\u002Fplots\u002Fwer_by_dataset.png) and [`latency_by_dataset.png`](results\u002Fplots\u002Flatency_by_dataset.png).\n\n### Notes\n\n- `commonvoice_010` (\"I guess you must think I'm kinda Batty.\") is unintelligible and every engine fails on it. It stays in the tables.\n- Part of the WER comes from reference style, for example LibriSpeech writes \"to day\" where most engines write \"today\".\n- Moonshine Base returned an empty transcript for two very short Common Voice clips.\n- Common Voice has only 163 reference words, so one word is 0.6 WER points.\n- Latency depends on network conditions and server load at the time of the run.\n\n## Text normalisation\n\nEvery engine's output and every reference passes through `scoring\u002Fnormalize.py` before scoring. Rules, in order:\n\n1. Unicode NFKC, then lowercase.\n2. Curly apostrophes become straight apostrophes.\n3. Bracketed or angle-bracket markers such as `[laughter]` are removed.\n4. `%` becomes \"percent\" and `&` becomes \"and\".\n5. Digits become words with `num2words` (`3` to \"three\", `2nd` to \"second\", `1,000` to \"one thousand\", `2.5` to \"two point five\").\n6. Hyphens split words (`well-known` to \"well known\").\n7. All other punctuation is removed. Apostrophes inside words are kept.\n8. Whitespace is collapsed.\n9. British spellings become American using the spelling map from the [`whisper-normalizer`](https:\u002F\u002Fpypi.org\u002Fproject\u002Fwhisper-normalizer\u002F) package (`travellers` to \"travelers\", `honour` to \"honor\").\n\nPairs with an empty reference are dropped, and an empty output counts as all deletions. No engine-specific cleanup is applied.\n\n## Repository layout\n\n```\n.\n├── assets\u002F\n│   └── banner.png             Repository banner\n├── datasets\u002F\n│   └── manifests\u002F             Files used per dataset (audio is git-ignored)\n├── engines\u002F                   One file per engine\n│   ├── base.py                Engine base class\n│   ├── velma.py\n│   ├── deepgram.py\n│   ├── assemblyai.py\n│   ├── openrouter_stt.py      Chirp 3 and MAI-Transcribe 2 (hosted)\n│   ├── whisper_hf.py          Whisper large-v3 via Hugging Face (hosted)\n│   ├── moonshine_local.py     Moonshine tiny and base (local)\n│   ├── whisper_cpp_local.py   whisper.cpp tiny.en and base.en (local)\n│   └── audio_utils.py         16 kHz WAV conversion\n├── results\u002F\n│   ├── plots\u002F                 Charts (per metric and per dataset)\n│   ├── results.csv            Summary table\n│   ├── results.md             Summary tables, hosted and local\n│   ├── session.json           Models, prices and run details\n│   └── \u003Cengine>_\u003Cdataset>.json  Per-file transcripts and latencies\n├── scoring\u002F\n│   ├── normalize.py           Shared text normalisation\n│   └── wer.py                 WER with jiwer\n├── tests\u002F                     Unit tests on fake text\n├── benchmark.py               CLI: run engines, rebuild reports\n├── download_datasets.py       Download slices, write manifests\n├── plots.py                   Charts and banner used by --report\n├── requirements.txt\n├── LICENSE\n└── .env.example               API key names (copy to .env)\n```\n\n## Limitations\n\n- Small samples: 20 files per dataset, so a single file can move WER noticeably.\n- One machine and one network. Latency includes upload time and server load for hosted engines.\n- Common Voice comes from a third-party Hugging Face mirror, not Mozilla's own distribution.\n- English only, and the first 20 files of each split rather than a random sample.\n- Each engine is run with one model and one setting.\n- The normaliser does not expand contractions or join split words such as \"to day\".\n\n## License\n\n[MIT](LICENSE)\n","这是一个可复现的语音识别（ASR）性能基准测试工具，用于在统一数据集（LibriSpeech、VoxPopuli、Common Voice）上横向对比多个语音转文字引擎的词错误率（WER）、端到端延迟和单位音频处理成本。支持云端API（如Velma、Deepgram、AssemblyAI、Chirp 3、MAI-Transcribe 2）与本地模型（Moonshine、whisper.cpp），采用标准化文本归一化与jiwer评分，所有测试逻辑通过Python CLI统一调度，结果与图表均版本化管理。适用于语音技术选型评估、ASR服务成本效益分析及学术对比实验。","2026-11-24 04:40:36","CREATED_QUERY"]