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 从公开仓库中收录这些内容。

举报或申请下架