tijo95 / piper_tts

Synthèses vocale piper oobabooga
11 stars 2 forks source link

This also works for linux with minimal modifications #3

Closed Martin-Laclaustra closed 10 months ago

Martin-Laclaustra commented 10 months ago

This is the installation procedure (I suggest adding it to the readme), creating a link to piper executable, so that the python code in this extension can find it:

cd ###text-generation-webui dir###/extensions
git clone https://github.com/tijo95/win_tts_piper.git
cd win_tts_piper/
wget https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_linux_x86_64.tar.gz
tar -xvf piper_linux_x86_64.tar.gz
rm piper_linux_x86_64.tar.gz 
cd piper; ln -r -s piper piper.exe
# download a model into model/

Alternatively, instead of creating a link, the extension code can be modified, and this also works:

cd ###text-generation-webui dir###/extensions
git clone https://github.com/tijo95/win_tts_piper.git
cd win_tts_piper/
wget https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_linux_x86_64.tar.gz
tar -xvf piper_linux_x86_64.tar.gz
rm piper_linux_x86_64.tar.gz 
sed -i -e "s/^piper_path = Path('extensions\/win_tts_piper\/piper\/piper\.exe')/piper_path = Path('extensions\/win_tts_piper\/piper\/piper')/" script.py
# download a model into model/

... but in this case, updating the extension will break the installation.

tijo95 commented 10 months ago

Hi, thanks for your work, don't hesitate to create a fork and port the improvements to the community, because I don't have the time to work on the extension right now.

tijo95 commented 10 months ago

I'll give you access to the project

FemBoxbrawl commented 10 months ago

@Martin-Laclaustra , If you have the ability to create a piperTTS extension to silly Tavern (with a selectable voice per character, that would be awesome!

tijo95 commented 10 months ago

@FemBoxbrawl, I'm sorry I didn't get back to you sooner, but I'm running out of time.

FemBoxbrawl commented 10 months ago

@tijo95 no problem, all good

tijo95 commented 10 months ago

@Martin-Laclaustra , I've given you access to the project, good luck.

Martin-Laclaustra commented 10 months ago

Thanks! That was a quick enrollment. I myself can not allocate also much time, but, at a minimum, I am going to add the information to the main page.