# asr-tools **Repository Path**: xkpro/asr-tools ## Basic Information - **Project Name**: asr-tools - **Description**: asr 音频转写工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-27 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 小蜜蜂语音转写 ## 命令行调用 ```bash # -i 输入音频文件路径 # -o 输出字幕文件路径 # -t 任务ID # -l 语言代码: en(英语) 或 ja(日语) # -c 分块分钟数,默认5分钟 # -s 最小静音时长,默认0.2秒 # -temp 临时目录,默认为当前目录下的 temp 目录 python main.py -i "C:\Users\ke\dev\proj\libs\AI\core\Ke.Ai.Tests\files\8NfafU1BgaY\16k.wav" -o "C:\Users\ke\dev\proj\libs\AI\core\Ke.Ai.Tests\files\8NfafU1BgaY\16k.srt" -t "aaa" -l "en" -c 5 -s 0.2 -temp "D:\temp" -m "parakeet-tdt-0.6b-v2" ``` ## 打包 ```bash # 打包应用 pyinstaller asr.spec --clean ``` ## 安装 megatron-core 错误 错误: ```txt subprocess.CalledProcessError: Command '['python3', '-m', 'pybind11', '--includes']' returned non-zero exit status 9009. ``` 解决: 1. 克隆源码 ``` git clone https://github.com/NVIDIA/Megatron-LM.git ``` 2. 修改源码中 `setup.py` 文件,将 `python3` 修改为 `python`,然后从源码安装 ```bash pip install .\Megatron-LM\ ```