Loading...
  OR  Zero-K Name:    Password:   

Time for TTS on Linux

30 posts, 3007 views
Post comment
Filter:    Player:  
Page of 2 (30 records)
sort
It is unfair that zk can speak on Windows, but cannot do it on Linux!
Here is a simple widget which uses festival.

How to make it works:

1) Install festival
For Ubuntu/Debian:
quote:
sudo apt-get install festival

2) Start it:
quote:
festival --server

You can use another port, but you should change the port const in the widget

3) In .springrc (Probably, ~/.springrc) add
quote:
LuaSocketEnabled = 1
TCPAllowConnect = 127.0.0.1:1314

4) PROFIT!!!

Talk is cheap. Show me the code.
+4 / -0
11 years ago
Great that someone is getting this working on linux! It is not working for me though. When I do "festival --server 1314" it says "SIOD ERROR: could not open file 1314". Any ideas?
+0 / -0

11 years ago
Just join it without 1314:

festival --server
+0 / -0
11 years ago
Thanks @chesti, that worked.
+0 / -0
festival has an option to use pipe, so it read data from stdin. It can be better to use a special script instead of sockets, is it?

quote:
Just join it without 1314:

festival --server

Sorry. Fixed.
+0 / -0
11 years ago
In what circumstances is this meant to read out the text? I just spectated a game with plenty of chatter on ally and open channels but nothing was read out.
+0 / -0
11 years ago
It should read only messages from ally and labels. Are they any errors in infolog?
+0 / -0
11 years ago
ZKL in windows doesn't TTS during speccing.
+0 / -0
11 years ago
Although I appreciate your effort on this, I have to say that TTS is really annoying, I'm glad it doesn't work by default on linux xD
+0 / -0
11 years ago
ESrankElTorero
You always can turn off the widget.
+0 / -0
11 years ago
It does not seem to work. I had it set up properly and was playing, not just speccing but it did not read out ally chat.
+0 / -0
Great! Use of luasocket is one of spring's first :-)

Someone could also try to integrate it with ZKL if interested.
+0 / -0
Got this to work. Instructions for Linux Debian/Ubuntu with ZKL:
Click download in the pastebin behind RUrankbanana_Ai's link.
Save the file to your .spring/LuaUI/Widgets folder with the name
festival_tts.lua (or whatever name ending in .lua).

Do in a terminal:
quote:

sudo apt-get install festival


This one will run festival, the text to speech server, and will take over your terminal. Closing the terminal closes the text to speech service:
quote:

festival --server


In ZK Lobby, go to Settings. Click Adv. Settings - edit engine settings.
Paste
quote:

LuaSocketEnabled = 1
TCPAllowConnect = 127.0.0.1:1314

at the end of the file.
Start a new game. It should speak "I choose: whatevercom" when you start.
Also active when spectating by default.
Just kill or don't run festival to disable.
+0 / -0
GBrankTheSponge
Can you past your infolog?

Also, check if festival works:
quote:

echo "Speak test" | festival --tts

If you do not hear anything, it is festival troubles.
+0 / -0
it works now. The text has to go in springsettings.txt and not .springrc. The problem is that I cant understand a word of what it says. Thanks for the info FIrankVermind.
+0 / -0
If someone want, he can modify this widget to make it speaks his language.
Example:
quote:

(voice_msu_ru_nsh_clunits)
(SayText "Привет!")


quote:
The text has to go in springsettings.txt and not .springrc.

Strange. .springrc works for me. Probably, it is because you use ZKL and I use springlobby.
+0 / -0
GBrankTheSponge if you can't understand it, probably your system has a different default language than English for festival installed.
Try to install the Americal English speaker and run festival with the English language instead:

sudo apt-get install festvox-kdlpc16k
festival --language english --server

By the way, how do you do code formatting or at least quote in this forum?
+0 / -0
11 years ago
FIrankVermind I can understand it sometimes and it is speaking English, the problem is that often the English sounds like garbled radio static. I think it is just a problem with our current ability to synthesize human voices, not a problem with festival specifically.

For forum formatting read this post.
+0 / -0

11 years ago
GBrankTheSponge that sounds like the minimal English speaker or some other low quality voice. Try to uninstall other voices than the 16k ones.
+0 / -0
11 years ago
How do I uninstall them? Festival seems to have very little documentation.
+0 / -0
Page of 2 (30 records)