Transcribe

badlogic/pi-skills/transcribe

作者 badlogic90bb51cae36515a648515b633a81c0c6efc8c74d無授權條款2.5K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫4 個月前更新

Local speech-to-text transcription on Apple Silicon macOS. Supports wav directly and other audio formats via ffmpeg.

包含腳本Data & Analytics
AI 產生的概覽

在 Apple Silicon macOS 上使用 parakeet-cpp-transcribe 將音訊在本機轉寫為帶時間戳的文字。

功能
執行一個 shell 指令碼,在 Apple Silicon macOS 上呼叫 parakeet-cpp-transcribe 進行本機語音轉文字。它可直接處理 WAV,並透過 ffmpeg 支援其他音訊格式,將以 15 秒分段的帶時間戳純文字寫入標準輸出。首次執行時會從 GitHub release 下載 macOS arm64 二進位檔到被忽略的 bin 目錄,該二進位檔在缺少時會自動下載其 GGUF 模型。模型診斷記錄會輸出到標準錯誤。
適用情境
當需要在 Apple Silicon Mac 上對音訊檔案進行語音轉文字,並希望處理在本機完成時使用。適合產出帶時間戳的純文字轉寫,在已安裝 ffmpeg 時也支援非 WAV 格式。
執行需求
僅限 Apple Silicon macOS;需要 curl 和 tar;非 WAV 輸入需要 ffmpeg(brew install ffmpeg);需要網路存取以下載 GitHub release 中的二進位檔和 GGUF 模型;附帶可執行指令碼(transcribe.sh)。

Transcribe

Local speech-to-text using parakeet-cpp-transcribe on Apple Silicon macOS.

Usage

bash
{baseDir}/transcribe.sh <audio-file>

The first run downloads the macOS arm64 binary from the latest badlogic/pibot GitHub release into the extension's ignored bin directory:

text
{extensionDir}/bin/parakeet-cpp-transcribe

({extensionDir} is the parent directory of this skill's {baseDir}.) The binary downloads its GGUF model automatically if missing.

Output

Plain text timestamped in 15 second chunks is written to stdout:

text
[00:00-00:15] transcript text[00:15-00:30] more transcript text

Model/GGML diagnostic logs are written to stderr. Redirect stderr to hide them:

bash
{baseDir}/transcribe.sh <audio-file> 2>/dev/null

Requirements

  • Apple Silicon macOS only
  • curl and tar
  • ffmpeg for non-WAV input: brew install ffmpeg

來源與署名

來源:badlogic/pi-skills位於transcribe提交90bb51c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架