macOS / Linux / Windows Source Code Deployment
Windows users can also follow this guide to install uv and ffmpeg.
macOS/Linux — Install prerequisite tools
macOS requires the following commands:
brew install libsndfile brew install git brew install [email protected] brew uninstall --ignore-dependencies ffmpeg brew tap homebrew-ffmpeg/ffmpeg brew install homebrew-ffmpeg/ffmpeg/ffmpegLinux requires
ffmpeg>=6— runsudo yum install -y ffmpegorapt-get install ffmpeg.Windows requires downloading
ffmpeg>=6. Placeffmpeg.exeandffprobe.exeinapp_dir/ffmpeg/. FFmpeg download URL: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7zCreate a folder without spaces or Chinese characters, enter it in the terminal, then run:
git clone https://github.com/jianchang512/pyvideotrans cd pyvideotransAlternatively, go to https://github.com/jianchang512/pyvideotrans, click the green Code button to download the source, extract it, and enter the directory containing
sp.py.Run
uv syncto install dependencies. Depending on your network, this may take minutes to tens of minutes. Users in China can use a mirror for faster installation:uv sync --index https://mirrors.aliyun.com/pypi/simple/
Windows: ensure you can connect to github.com, otherwise installation will fail.
By default, the
whisper.netlocal channel andwebuiare NOT installed. To install everything, runuv sync --all-extras.
- To install only
whisper.net, runuv sync --extra dotnet.- To install only the WebUI, run
uv sync --extra webui.
- Run
uv run sp.pyto open the GUI, oruv run webui.pyto open the WebUI.
Notes
The latest source code is available from the
devbranch.Qwen-TTS/Qwen-ASR and OmniVoice have conflicting
transformersversion requirements (the former requires 4.57.6, the latter >=5.3.0). To make both work, Qwen-TTS/Qwen-ASR were forked and modified. They are now installed from https://github.com/jianchang512/Qwen3-asr and https://github.com/jianchang512/Qwen3-tts. Inpyproject.toml, the package names areqwen-tts-pvtandqwen-asr-pvt. To install them individually, runuv add qwen-tts-pvtanduv add qwen-asr-pvt.
