すべての文字起こしAIモデルをサポートするGGMLベースの文字起こしライブラリ「transcribe.cpp」、ほぼそのままでwhisper.cppと置き換え可能

「transcribe.cpp」は最新の文字起こしモデルの多くをサポートするGGMLベースのC/C++音声認識ライブラリです。
Project - transcribe.cpp
https://workshop.cjpais.com/projects/transcribe-cpp

GitHub - handy-computer/transcribe.cpp: ggml speech-to-text inference for 16+ model families · GitHub
公式サイトによると、transcribe.cppの特徴は以下の通りです。
・記事作成時点で20の音声認識(ASR)モデルファミリー(60以上のモデル)をサポートしており、今後さらに増える予定
・Vulkan・Metal・CUDA・TinyBLASによる高速化
・すべてのモデルは数値的に検証されWERテストも実施済み
・ストリーミング文字起こし・バッチ文字起こしのサポート
・ほぼそのままでwhisper.cppの置き換えが可能
・公式サポートされているバインディングは4言語
・Python
・JavaScript/TypeScript
・Rust
・Objective-C/Swift
transcribe.cppがサポートしているASRモデルファミリーは、公式GitHubによると以下の通りです。
・Parakeet
・Canary
・Canary-Qwen
・Whisper
・GigaAM
・Moonshine
・Moonshine Streaming
・Qwen3-ASR
・Cohere Transcribe
・SenseVoice
・FunASR Nano
・Nemotron Speech Streaming
・Nemotron 3.5 ASR Streaming
・Multitalker Parakeet Streaming
・Granite Speech 4 / 4.1
・Voxtral
・Voxtral Realtime
・MedASR
・MOSS Transcribe-Diarize
・Sortformer
導入に関してはCMakeとC/C++系のビルドツールがあれば様々なプラットフォームに導入可能です。例えばWindowsであれば以下のツールがインストールされていればtranscribe.cppをビルドすることができます。
・winget(※他のツールを導入するために必要)
・Git
・Visual Studio Build Tools 2022(C++)
・CMake
# Git
winget install --id Git.Git --accept-source-agreements --accept-package-agreements
# CMake
winget install --id Kitware.CMake --accept-source-agreements --accept-package-agreements
# MSVC C++ build tools (multi-GB download; the C++ workload is NOT default,
# so it must be requested explicitly via --override)
winget install --id Microsoft.VisualStudio.2022.BuildTools `
--accept-source-agreements --accept-package-agreements `
--override "--quiet --wait --norestart --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621 --includeRecommended"
ビルドは以下の手順でOK。
git clone https://github.com/handy-computer/transcribe.cpp
cd transcribe.cpp
cmake -B build
cmake --build build --target transcribe-cli --config Release
使用法については特徴にも上げた通りtranscribe.cppはwhisper.cppの代替を目標としており、記事作成時点ではwhisper.cppの全機能を実装するまでには至っていないものの、ほとんどのユースケースでは置き換え可能なレベルに到達しているとのことです。より詳しいビルド方法や使い方については以下を確認してください。
transcribe.cpp/docs/build-windows.md at main · handy-computer/transcribe.cpp · GitHub
https://github.com/handy-computer/transcribe.cpp/blob/main/docs/build-windows.md
