Text-to-Speech
F5-TTS

I want to add a language (spanish or portuguese)

#24
by promorada - opened

Thank you for the excellent app.
It's perfect for English texts, but I'd like to add Spanish or Portuguese.

I saw a video on YouTube suggesting downloading a file: .safetensors on this web page for example (PtBr):
https://huggingface.co/Tharyck/multispeaker-ptbr-f5tts/tree/main

Or spanish:
https://huggingface.co/jpgallegoar/F5-Spanish/tree/main

It says to put in this folder:
C:\pinokio\api\e2-f5-tts.git\cache\HF_HOME\hub\models--SWivid--F5-TTS\snapshots\84e5a410d9cead4de2f847e7c9369a6440bdfaca\F5TTS_v1_Base
Does not recognize.

I tried creating a new folder for the new file .safetensors:
C:\pinokio\api\e2-f5-tts.git\cache\HF_HOME\hub\models--SWivid--F5-TTS\snapshots\84e5a410d9cead4de2f847e7c9369a6440bdfaca\F5TTS_v2_Base
Does not recognize.

I expected that when running e2-f5-tts and clicking on custom, the option to choose one of the .safetensors
How to solve it? I think I needed a hash and create a folder at a higher level. I don't know. I need help.
Thanks

In my mac, nothing works when substituting files because the format is not recognized by the app and it loads again when you restart the app. In my PC it works fine like this:

1 Look at the terminal of the app in Pinokio clicking in the menu below WebUI and all those on the left. You will see there is a message in the terminal window that indicates "model loaded from" (a path with a 1200000 or 1250000 safetensors) and a "vocab loaded from" (a path to a examples folder in src with a vocab.txt) or similar

2 Download one of the safetensors from this site https://huggingface.co/jpgallegoar/F5-Spanish/tree/main (120 or 125 depending on the one you saw being utilized in the terminal message in step 1) and the vocab.txt

3 Go to the path of the safetensors file indicated in the terminal in step 1 and rename the safetensors file you will see in there. Copy your downloaded Spanish safetensors file in that folder

4 Go to the path of the vocab.txt file indicated in the terminal in step 1 and rename the vocab.txt to something like 1vocab.txt. Copy your downloaded Spanish vocab.txt file in that folder

5 Use the app and check the results (I have not updated my Pinokio PC app in a long time so new versions might act differently although it works for me)

Point: I also wanted a dropdown menu with options, so I took the code and asked Copilot help me include a dropdown that loads the original or the Spanish safetensors and vocab files accordingle to your selection. It was a 5 hour nightmare to make it work and then I discovered that the Mac version of F5 TTS Pinokio does not like the F5 TTS Spanish versions for some reason. If somebody knows why, I would appreciate your help. You can try to work with Copilot although some Python knowledge is needed and making regular copies of your python app files to avoid messing the app

Good luck

Sign up or log in to comment