LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-18-2013, 01:14 PM   #1
jmite
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 266

Rep: Reputation: 36
Piping espeak to sox?


I've been playing with espeak tts, and I found this wonderful tutorial for how to improve the voice quality:

http://linuxsake.tumblr.com/post/276...e-sound-better

However, when I try to run
espeak “Hello robots” —stdout | play -
I get the following error:
play FAIL formats: can't determine type of `-'

Does anybody have any idea for why this might happen? I'm pretty new to sox and Linux audio in general.

If it make a difference, I'm running raspbian on a Raspberry Pi, using PulseAudio.
 
Old 05-19-2013, 12:17 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Be careful when copying commands directly from the net. The "" in the above is an em dash, not the ascii hyphen the command needs.
 
1 members found this post helpful.
Old 05-19-2013, 02:09 PM   #3
jmite
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 266

Original Poster
Rep: Reputation: 36
Awesome, I had never heard of that before. How do I type that on my keyboard/copy it correctly?
I copied it from midori, which might copy differently than other browsers.
 
Old 05-21-2013, 10:30 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
After pasting it you'll have to go in and manually correct it, of course. Shell syntax only needs the standard ascii characters produced by the basic keyboard keys.

Also be on the lookout for the less common EN DASH (–) and "smart" quotation marks (“”|‘’), among others. Word processing software will often convert the ascii characters into the fancier literary versions.

http://en.wikipedia.org/wiki/Dash
http://en.wikipedia.org/wiki/Quotation_mark
...etc...

If you want to actually produce fancy characters like these you can use the same multi-key input system used for fancy characters in other languages. The combination "<multi><minus><minus><minus>" produces the em dash, for example. Your "/usr/share/X11/locale/en_US.UTF-8/Compose" file will contain the definitions of all the characters it can produce. It's a long file. Change the locale to the one you use if it isn't English.

There are also character selection tools and input methods available, but the multi-key is the most convenient. Look it up.
 
  


Reply



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
[SOLVED] using mbrola with espeak fakie_flip Linux - Software 2 04-21-2012 05:40 PM
Ubuntu, Help with espeak! steelheat Linux - Software 3 10-02-2011 01:30 PM
espeak script on login smturner1 Linux - Software 8 05-25-2011 08:31 AM
sox package, Slackware 13.1, fails on sox 1.wav -e stat burbabro Slackware 1 05-04-2011 02:26 AM
Linux piping vs Windows piping emanabela Linux - Newbie 1 05-10-2009 12:58 PM

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

All times are GMT -5. The time now is 02:33 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
Open Source Consulting | Domain Registration