Webux Lab

By Studio Webux

Linux Notes - Text-to-Speech with Bark

TG
Tommy Gingras Studio Webux 2023-09-09

Bark

Notes to install and use Bark on Ubuntu.

Increase VM disk to 45GB

sudo qemu-img resize /var/lib/libvirt/images/ubuntu22.04-1.qcow2 +20G
sudo virsh list --all
sudo virsh start ubuntu22.04

Apply to the Filesystem

sudo growpart /dev/vda 2
sudo resize2fs /dev/vda2
sudo reboot

Install Bark

sudo apt install -y python3 python3-pip

git clone https://github.com/suno-ai/bark
cd bark

pip3 install numpy encodec funcy scipy tqdm transformers

python3 -m pip install .

Use Bark

python3 -m bark --text "Hello, my name is Suno." --output_filename "example.wav"


Search