How can I add a text to speech service or any other similar services to GoldenDict for offline use?
I am using Ubuntu 13.10 and I want to learn how to pronounce English words I don't know.
How can I add a text to speech service or any other similar services to GoldenDict for offline use?
I am using Ubuntu 13.10 and I want to learn how to pronounce English words I don't know.
You can use the Programs tab to plug a text to speech software (espeak for example) into the GoldenDict.
Here are the steps:
Install espeak:
Open GoldenDict and hit F3 to bring up the Dictionaries window (or select Edit/Dictionaries menu).
On the Sources tab, select Programs tab.
Click the Add button, select Audio for the Type column, enter espeak for the Name, and
espeak -v en %GDWORD%
for the Command Line column.Don't forget to check the Enabled box.
Click OK
Close the GoldenDict window and reopen it.
Now you have an item named espeak in your dictionaries and your translation results. Clicking the speaker icon in front of the word in espeak result, reads the word for you.
Recent versions of GoldenDict have a Programs tab in the settings menu where you can add custom commands to be run on your search term.
This forum post by wissam describes how to set up Google TTS with GoldenDict using the method described above:
Now this is online TTS of course and not necessarily what you are looking for but you can use the same method to add any type of TTS software to GoldenDict (e.g.
espeak %GDWORD%
as the command line).Check this Q&A out for good TTS apps on Linux.
this worked for me.
Make sure you have installed mpg123:
sudo apt install mpg123
Google Text-To-Speech (TTS)
or https://github.com/Glutanimate/simple-google-tts
in "Command Line" field copy and paste this command:
simple_google_tts en "%GDWORD%"
Don't forget make a symlink for simple_google_tts to your PATH (e.g. ~/bin or /usr/local/bin) to make it easier to access.
What worked for me:
crow -s en -u “%GDWORD%”
to the "Programs" tab. The type should be "Audio". See figure below.You can change the language of the TTS by changing the part
-s en
to another code likeit
for italian,fr
for french, etc. See Crow translate documentation for details.sudo apt install translate-shell
bash trans -b -p :en %GDWORD%
in the command section, type audio.This will translate anything that you search to English and then speak the English translation. You can change the en in the code to say it in another language. Internet conection is required to work propearly.
You can use swift program.
Example:
If you want native woman accent like google download from here (+500K words ~ 2GB): https://github.com/yousefvand/pronunciations