https://github.com/suno-ai/bark
安装
conda create --name bark python=3.11.3
conda activate bark
pip install .
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
运行
python -m bark --text "番茄炒蛋是一道非常经典的中式家常菜" --output_filename "v1.wav" --history_prompt "v2/zh_speaker_9"
难点:
1.解决numpy问题?
pip install -U numpy
2.支持的角色?
https://suno-ai.notion.site/8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c
3.开启CUDA加速?
Bark has been tested and works on both CPU and GPU (pytorch 2.0+, CUDA 11.7 and CUDA 12.0).
4.生成长文本?
先安装 pip install nltk
再新建.py脚本执行下载数据
import nltk
nltk.download(‘punkt’)
5.下载webui版本运行?
python webui.py -autolaunch