New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Google text to speech in GD for linux users

All about dictionaries

Google text to speech in GD for linux users

Postby wissam » Tue Aug 13, 2013 8:09 pm

Hi

if u want to use Google tts in GD u can do that following these steps :
1 - Edit -> Dictionaries -> Programs.
2 - click on Add and choose "Audio" in type field .
3 - in "Command Line" field copy and paste this command:

Code: Select all
bash -c "p=$(echo "%GDWORD%" |sed 's/ /+/g');wget -U Mozilla -q -O - "$@" translate.google.com/translate_tts?tl=en\&q=$p|mpg123 -"

click ok

for languages other than english change tl=en in the command ,for example fr for french or es for spanish ......
sorry for my bad English.
Note: mpg123 should be installed .
Last edited by wissam on Fri Nov 07, 2014 8:54 pm, edited 1 time in total.
wissam
 
Posts: 6
Joined: Sat Jul 13, 2013 1:46 pm

Re: Google text to speech in GD for linux users

Postby toctoc3 » Sat Feb 01, 2014 10:25 am

Thanks!! its so easy


Code for Spanish speech:
Code: Select all
bash -c "p=$(echo "%GDWORD%" |sed 's/ /+/g');wget -U Mozilla -q -O - "$@" translate.google.com/translate_tts?tl=es\&q=$p|mpg123 -"


And 4 Italian speech:
Code: Select all
bash -c "p=$(echo "%GDWORD%" |sed 's/ /+/g');wget -U Mozilla -q -O - "$@" translate.google.com/translate_tts?tl=it\&q=$p|mpg123 -"
toctoc3
 
Posts: 17
Joined: Fri Dec 20, 2013 2:16 pm

Re: Google text to speech in GD for linux users

Postby xkomczax » Fri Oct 31, 2014 8:22 pm

Hey, thanks for this! :-)

However I found "small" problem: in French there is problem with pronouncing letter "é". Instead of "é" the voice says "copyright" (quite strange, I know...). For instance: the word "président" is pronounced "pr-copyright-side". on google translate the pronunciation seems to be OK.

EDIT: It doesn't work with words including character "ç" such as "français". The pronunciation is somehow crippled
xkomczax
 
Posts: 2
Joined: Fri Oct 31, 2014 8:18 pm

Re: Google text to speech in GD for linux users

Postby wissam » Fri Nov 07, 2014 8:44 pm

xkomczax wrote:Hey, thanks for this! :-)

However I found "small" problem: in French there is problem with pronouncing letter "é". Instead of "é" the voice says "copyright" (quite strange, I know...). For instance: the word "président" is pronounced "pr-copyright-side". on google translate the pronunciation seems to be OK.

EDIT: It doesn't work with words including character "ç" such as "français". The pronunciation is somehow crippled

Hmmmm,starnge.
Ok try adding ie=UTF-8 to the command to become like this :
Code: Select all
bash -c "p=$(echo "%GDWORD%" |sed 's/ /+/g');wget -U Mozilla -q -O - "$@" translate.google.com/translate_tts?ie=UTF-8\&tl=fr\&q=$p|mpg123 -"

this worked for me .
wissam
 
Posts: 6
Joined: Sat Jul 13, 2013 1:46 pm

Re: Google text to speech in GD for linux users

Postby xkomczax » Fri Nov 07, 2014 8:53 pm

Ok try adding ie=UTF-8 to the command to become like this :

hey, wissam, thank you! Now it works perfectly. Thanks a lot! :-)
xkomczax
 
Posts: 2
Joined: Fri Oct 31, 2014 8:18 pm


Return to Dictionaries

Who is online

Users browsing this forum: No registered users and 7 guests