MockingBird
https://github.com/babysor/MockingBird
安装 ffmpeg
brew install ffmpeg配置镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes
conda update --all安装 pyqt5
conda install qt pyqt
brew install pyqt5
brew link --overwrite pyqt@5安装一些 pip 直接装会报错的模块
conda install -c conda-forge pytorch
conda install -c conda-forge python-sounddevice umap-learn inflect unidecode
conda install -c conda-forge llvmlite numpy matplotlib
conda install -c conda-forge librosa
conda install -c conda-forge numpy==1.20
conda install numba==0.53
conda install pypinyin
conda install -c conda-forge python-sounddevice
conda uninstall --force portaudio
conda install -c conda-forge python-sounddevice
cd
cd miniforge3/lib
mv libportaudio.2.dylib libportaudio.2.dylib.bak
brew info portaudio
ln -s /opt/homebrew/Cellar/portaudio/19.7.0/lib/libportaudio.dylib libportaudio.2.dylib
ls -al | grep libport安装依赖模块
安装 webrtcvad-wheels
安装 libsndfile
下载预训练模型
这里使用社区提供的模型
https://pan.baidu.com/s/1iONvRxmkI-t1nHqxKytY3g 百度盘链接 4j5d
下载完后在项目的 synthesizer 下创建个 saved_models 文件夹,把下载的文件放进去
启动Web程序
MemoryError: Cannot allocate write+execute memory for ffi.callback().
启动工具箱
参考
https://github.com/babysor/MockingBird/blob/main/README-CN.md
https://github.com/babysor/MockingBird/issues/65
https://github.com/babysor/MockingBird/issues/471
https://mp.weixin.qq.com/s/Gzxm5wyzPPsebv5BQh5EPw