LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2014, 11:17 AM   #1
inferno1980
LQ Newbie
 
Registered: Oct 2014
Posts: 12

Rep: Reputation: Disabled
Human like Text to Speech Software


Hi
I have recently moved from windows to linux and really enjoying all this plathora of knowledge. I have a question and I want to explain in a bit detail:
In few days, I have an eye operation after which I would not be allowed to read for 2 (boring) weeks. I am thinking to spend these days by listening to my favourite books and other reading material. For this purpose I am looking for a 'Text to Speech" software. I have tried 'espeak' but its voice is completely robotic and I did not enjoy it at all. I am not confirm but I think that alongwith this kind of software, it is also required to set its speed and pitch to make it more human like.
So, kindly help me to find good text to speech software (with appropriate settings) with human like voice to I can spend my holidays
Regards
 
Old 10-18-2014, 04:40 PM   #2
OpensourceRulzs
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Rep: Reputation: Disabled
I use festival which sounds a bit clearer than espeak, but it's still a synthesize voice.

For a more realistic voice, there is https://translate.google.com/, Just paste your text and click on the speaker icon in the right box.

There is a script to run google translate from the terminal.
http://pastebin.com/1eViCKCa

There are more variations of the script online. To use this script, open a new text file and paste the script contents. Save the file, for example, googlesay or whatever you want. Next, type chmod +x googlesay.

To use the script, type on the terminal

Code:
./googlesay "Hello World"

For android, you can use google talkback which is clear and it speaks out the keyboard buttons as you hover over them with your finger and it reads many documents.

Last edited by OpensourceRulzs; 10-19-2014 at 12:19 PM.
 
Old 10-19-2014, 04:41 AM   #3
inferno1980
LQ Newbie
 
Registered: Oct 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for your reply.
Yes, you are right. Google is more realistic than other free softwares (out there on the internet). I'm also thinking about to use google as text to speech. However, we know that in the absence of internet, it is not possible to use google. So I'm thinking that is it possible to download google's voice data and use it offline?
P.S. one more thing that I noticied with google translate is that it stops reading after 417 words, maybe google has put maximum reading restriction, so if this is the case then it may not be very helpful in my case.

Last edited by inferno1980; 10-19-2014 at 04:53 AM.
 
Old 10-19-2014, 05:08 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,701
Blog Entries: 9

Rep: Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787Reputation: 3787
inferno1980, google most certainly won't let you use this locally.
also, there's a lot more computing power required to make the text sound so human, as compared to espeak.
i must say, i'm impressed with the script.

you might want to download some (free) audiobooks before the operation.
 
Old 10-19-2014, 05:41 AM   #5
inferno1980
LQ Newbie
 
Registered: Oct 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for audio books link, however favourite book is not always available in audio format
Strangly, the script is not working here and giving following error:
Code:
./googlesay "Hello World"
No language supplied, using en
wget: --user-agent: Invalid value 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like \nGecko) Chrome/29.0.1547.2 Safari/537.36'.
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /tmp/b085051085648476c77352608f8a83a1  -.mp3.
File not found: '/tmp/b085051085648476c77352608f8a83a1  -.mp3'
Failed to open /tmp/b085051085648476c77352608f8a83a1  -.mp3.


Exiting... (End of file)
rm: cannot remove '/tmp/b085051085648476c77352608f8a83a1  -.mp3': No such file or directory
 
Old 10-19-2014, 10:49 AM   #6
inferno1980
LQ Newbie
 
Registered: Oct 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Meanwhile, I have also been practicing with festival and found it a good Text to Speech (TTS) software. However, like Google, festival is also reading only 417 words. I googled but now able to find that how to change this maximum limit of reading 417 words.

Last edited by inferno1980; 10-19-2014 at 12:01 PM.
 
Old 10-19-2014, 12:56 PM   #7
OpensourceRulzs
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by inferno1980 View Post
Meanwhile, I have also been practicing with festival and found it a good Text to Speech (TTS) software. However, like Google, festival is also reading only 417 words. I googled but now able to find that how to change this maximum limit of reading 417 words.
I'm sorry the googlesay script didn't work for you. Since I didn't write the script, I couldn't offer any troubleshooting ideas.

The googlesay script works on my system just fine, but it is limited to small paragraphs.

We have to admit the voice on googlesay is impressive and is more understandable than especk and festival.

Like I said, there are variations of the script and with fewer lines of code. Here are a few examples from commandlinefu.com

http://www.commandlinefu.com/command.../sort-by-votes

Also, on youtube using these keywords: text to speech linux
https://www.youtube.com/results?sear...o+speech+linux
 
Old 10-20-2014, 04:03 AM   #8
inferno1980
LQ Newbie
 
Registered: Oct 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by OpensourceRulzs View Post
I'm sorry the googlesay script didn't work for you. Since I didn't write the script, I couldn't offer any troubleshooting ideas.

The googlesay script works on my system just fine, but it is limited to small paragraphs.

We have to admit the voice on googlesay is impressive and is more understandable than especk and festival.

Like I said, there are variations of the script and with fewer lines of code. Here are a few examples from commandlinefu.com

http://www.commandlinefu.com/command.../sort-by-votes

Also, on youtube using these keywords: text to speech linux
https://www.youtube.com/results?sear...o+speech+linux
Its was my mistake. The limit was not 417 words. I accidently copied half of the contents of sample text file. My bad

Thanks for youtube and commandlinefu links. commandlinefu link needs bookmarking
Although the problem is not solved but by researching I think I have enough knowledge (of TTS in linux) that I can progress in this direction by myself.
Thanks everyone.
 
Old 10-20-2014, 09:23 PM   #9
c0d3d
Member
 
Registered: Aug 2012
Posts: 74

Rep: Reputation: 12
I decided to write a script for you that will get the job done. Instead of copying it onto this post, I attached it to this post. At this stage, it can read any text file of any length, but only text files. PDFs and EPUBs are in the works.

To run it you will need Python 3 and executable permissions for it.
Attached Files
File Type: txt pyreader.txt (2.2 KB, 25 views)

Last edited by c0d3d; 10-21-2014 at 08:23 AM.
 
Old 10-20-2014, 09:33 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,023
Blog Entries: 27

Rep: Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777Reputation: 4777
Jonathan Nadeau, creator and maintainer of Sonar Linux, is working to improve the quality of the voices in Linux screen readers, but he will freely state that he's not there yet.

Going Linux recently did a podcast about assistive technology and Linux; you might find it useful.
 
Old 10-21-2014, 03:54 AM   #11
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Rep: Reputation: Disabled
Sadly, windows' software are better than linux in this context
IVONA is one which I personally (dis)like and has very good voice quality.

Last edited by zetrotrack000; 10-21-2014 at 04:12 AM.
 
Old 10-21-2014, 07:13 AM   #12
c0d3d
Member
 
Registered: Aug 2012
Posts: 74

Rep: Reputation: 12
There's also Orca.
 
Old 10-21-2014, 09:16 AM   #13
inferno1980
LQ Newbie
 
Registered: Oct 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks everyone for your kind help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Text to Speech - Speech to Text in Linux & C/C++ aarsh Linux - Newbie 2 05-15-2012 11:46 AM
text to speech software Four Linux - Software 2 03-18-2009 04:48 AM
text to speech, what software gives real voice? newtovanilla Linux - Software 7 11-22-2008 11:58 PM
Could anyone help me with Text To Speech software? StarbuckZero Linux - General 5 01-04-2007 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration