Using Edge-TTS with Websocket for free "neural" voices #226
Replies: 7 comments 18 replies
-
Seems awesome, could you explain how to set it up? do i just need to run main.py and then setup the websocket like your screenshot? @Tyler-Altgrave |
Beta Was this translation helpful? Give feedback.
-
i got it..!!! i just had to run python main.py...i was running just ./main.py and it was opening visual studio code and then had nothing... Thanks |
Beta Was this translation helpful? Give feedback.
-
I'm glad you're enjoying it, I just started playing the MSQ again and I'm
loving not having to read 😁
…On Sun, Aug 18, 2024, 6:07 PM saitoh183 ***@***.***> wrote:
@Tyler-Altgrave <https://github.com/Tyler-Altgrave> Thank you for this.
It has made the TTS experience so much more enjoyable. When i encounter a
voice i find doesnt fit, i can just replace it in the json file ...its
great!
—
Reply to this email directly, view it on GitHub
<#226 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWWGMEYJ4XGB4P6NZ2WQF4DZSELLLAVCNFSM6AAAAABMWQEOMKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZXGYZDCOI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Configure Python On WindowsAlright so for those that are like me and had a bit of trouble figuring it out.
|
Beta Was this translation helpful? Give feedback.
-
How to add voices to the scriptopen main.py in notepad++ or Visual Studio code and navigate to line 13 and 14 open a terminal window and type in Now navigate to your saved file and open it. Navigate to https://ttsfree.com/text-to-speech#google_vignette . This site will allow you to preview all the voices in the list so you can see which one you want to add to the file. You want to listen to the voices under TTS Server 2. Once you find a voice, simply search for it in your file. Once you find it copy the Name and paste it in the main.py at the end of the Array of the proper gender. Look at my screenshot above for reference. Make sure you do not add a comma to the last entry in the array but there must be a comma in between entries. Once you are done, save main.py and relaunch main.py |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, first of all thanks for creating the script. i run your script on an Arch Linux system with Python version 3.12.4. In your script I have replaced the English voices with German voices and changed the IP to that of my Steam Deck. Everything seems to run normally, except for the male voices, even for female characters. What could be the reason for this? |
Beta Was this translation helpful? Give feedback.
-
I couldn't find any information on how to do this, so hopefully this helps somebody. Please feel free to improve it if you have suggestions.
This is a decent free alternative to using the system voices. The script uses Edge-TTS to assign a random voice and pitch to every NPC you speak to. The voice + pitch is recorded in JSON so that each NPC retains their assigned voice when you speak with them (based on Name/ID/Gender). The script uses an array of voice options, so you can change them to anything you want. You can also modify the JSON to assign any voice you wish to the NPC's you've already spoken to.
Setup:
Websocket Settings:
Sample Video:
https://github.com/user-attachments/assets/8ab7bcb9-2659-42fe-a04c-55e2f1c4cf3e
Download:
ffxiv-tts-20240829.zip
Resources:
Edge-TTS
Edge-TTS Voice List
How To: Verify Websocket Is Running
How To: Configure Python On Windows
How To: Add More Voices
How To: Autostart With XIVLauncher
Beta Was this translation helpful? Give feedback.
All reactions