Files
香草味的纳西妲喵 d984cda486 Revise README for ogg_converter clarity and instructions (#1432)
Updated README to clarify the purpose of the OGG converter and provide clearer instructions for downloading and installing FFmpeg.
2025-11-15 13:11:35 +08:00

37 lines
999 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ogg_covertor 小智AI OGG 音效批量转换器
本脚本为OGG批量转换工具支持将输入的音频文件转换为小智可使用的OGG格式
基于Python第三方库 `ffmpeg-python` 实现,**需要** `ffmpeg` 环境
可前往[此处](https://ffmpeg.org/download.html)下载对应你自己系统的ffmpeg发行版并添加到环境变量或者放在脚本所在目录
支持OGG和音频之间的互转响度调节等功能
# 创建并激活虚拟环境
```bash
# 创建虚拟环境
python -m venv venv
# 激活虚拟环境
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windows
```
# 下载FFmpeg
前往[此处](https://ffmpeg.org/download.html)下载ffmpeg
根据你当前的系统下载对应的版本,并将`ffmpeg`的可执行文件放置在脚本所在目录或者添加可执行文件所在目录到环境变量
# 安装依赖
请在虚拟环境中执行
```bash
pip install ffmpeg-python
```
# 运行脚本
```bash
python ogg_covertor.py
```