Geek Posted June 28, 2011 Posted June 28, 2011 <div class="KonaBody"><p>Using <a href="http://osxdaily.com/2010/03/28/how-to-make-your-mac-talk-text-to-speech/">Mac OS X Text to Speech</a> tools, we can convert any .RTF or .TXT file into a spoken audio file which can then be transferred to your iPod or iPhone for later listening. </p> <p>The command format is as follows: <code>say -o output.m4a -f /path/to/file.txt</code></p> <p>The default output will be to the Terminals present working directory (usually your Home), but you can specify it to go elsewhere if you want. Here’s an example, with the output going to the desktop and the input file coming from a documents folder:</p> <p><code style="font-size:95%;">say -o ~/Desktop/textaudio.m4a -f ~/Documents/HugeDocumentNobodyWantsToRead.rtf</code></p> <p>If you want to use a text file that is buried deep somewhere on your Mac, remember you can <a href="http://osxdaily.com/2011/03/02/drag-drop-finder-items-into-the-terminal-for-their-full-path/">drag and drop the icon into the Terminal to display it’s full path</a>. </p> <p>The audio file will be in M4A format and be read as whatever your current default text-to-speech voice is. If you’d rather have an mp3 file, just <a href="http://osxdaily.com/2009/12/03/convert-m4a-to-mp3/">use iTunes to convert m4a to mp3</a>, and you can always change the voice with the -v flag or by setting the default to something different.</p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/Vht_KCfrSAM7fpiGRHo0w1YLW9Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/Vht_KCfrSAM7fpiGRHo0w1YLW9Y/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/Vht_KCfrSAM7fpiGRHo0w1YLW9Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/Vht_KCfrSAM7fpiGRHo0w1YLW9Y/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=On5lg_r8CZU:zNBQSt2shaU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=On5lg_r8CZU:zNBQSt2shaU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=On5lg_r8CZU:zNBQSt2shaU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=On5lg_r8CZU:zNBQSt2shaU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=On5lg_r8CZU:zNBQSt2shaU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=On5lg_r8CZU:zNBQSt2shaU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=On5lg_r8CZU:zNBQSt2shaU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/On5lg_r8CZU" height="1" width="1"/> View the full article
Recommended Posts