From: Chris Ridd on 26 May 2010 01:26 On 2010-05-26 03:09:06 +0100, Basil Jet said: > Thanks, but I have over three hundred text files, and they change > gradually. Anything that requires manual input per file is a > non-starter. The procedure can be automated (doing all the files) using Automator.app. Audio Hijack and TextEdit both support being automated. -- Chris
From: Ian McCall on 26 May 2010 04:22 On 2010-05-25 13:13:48 +0100, Basil Jet <johnr(a)journeyflow.spamspam.com> said: > > I have hundreds of .txt files that I need to convert to mp3 files for > revision purposes. Here's instructions to do exactly that: http://www.macosxhints.com/article.php?story=20040926192411975 Cheers, Ian
From: Andrew Collier on 26 May 2010 05:26 In article <1jj1vsw.45waqniv2zq4N%usenet(a)alienrat.co.uk>, usenet(a)alienrat.co.uk (Woody) wrote: > Jim <jim(a)magrathea.plus.com> wrote: > > > On 2010-05-25, Basil Jet <johnr(a)journeyflow.spamspam.com> wrote: > > > On 25/05/2010 13:19, Woody wrote: > > >> Basil Jet<johnr(a)journeyflow.spamspam.com> wrote: > > >> > > >>> I have hundreds of .txt files that I need to convert to mp3 files for > > >>> revision purposes. > > >> You could use something like audio hijack with textedit and select > > >> 'speak text' The MacOS X text-to-speech engine can do this more-or-less automatically, if you're prepared to type a few lines in the Terminal. e.g. to convert a single file say -f readme.txt -o readme.aiff (You could use .m4a instead of .aiff in the filename, and it will output the appropriate type of file. Unfortunately mp3 output doesn't appear to be supported directly, but you can convert the aiff files to MP3 using iTunes.) To convert a whole folder of files at the same time, you'd do something like: find . -name "*.txt" -exec say -f '{}' -o '{}'.m4a ';' HTH, Andrew -- --- Andrew Collier ---- To reply by email, please use: ---- http://www.intensity.org.uk/ --- 'andrew {at} intensity.org.uk' --
From: Elliott Roper on 26 May 2010 06:07 In article <spambucket-4215AF.10265426052010(a)news.individual.net>, Andrew Collier <spambucket(a)intensity.org.uk> wrote: > To convert a whole folder of files at the same time, you'd do something > like: > find . -name "*.txt" -exec say -f '{}' -o '{}'.m4a ';' What a little ripper! Thanks! I just shoved a pdf book through emacs and handed it say. I think my car passengers are going to get very sick of Alex. <evil grin> -- To de-mung my e-mail address:- fsnospam$elliott$$ PGP Fingerprint: 1A96 3CF7 637F 896B C810 E199 7E5C A9E4 8E59 E248
From: Basil Jet on 26 May 2010 06:57
On 26/05/2010 10:26, Andrew Collier wrote: > In article<1jj1vsw.45waqniv2zq4N%usenet(a)alienrat.co.uk>, > usenet(a)alienrat.co.uk (Woody) wrote: > >> Jim<jim(a)magrathea.plus.com> wrote: >> >>> On 2010-05-25, Basil Jet<johnr(a)journeyflow.spamspam.com> wrote: >>>> On 25/05/2010 13:19, Woody wrote: >>>>> Basil Jet<johnr(a)journeyflow.spamspam.com> wrote: >>>>> >>>>>> I have hundreds of .txt files that I need to convert to mp3 files for >>>>>> revision purposes. >>>>> You could use something like audio hijack with textedit and select >>>>> 'speak text' > > The MacOS X text-to-speech engine can do this more-or-less > automatically, if you're prepared to type a few lines in the Terminal. > > e.g. to convert a single file > say -f readme.txt -o readme.aiff > > (You could use .m4a instead of .aiff in the filename, and it will output > the appropriate type of file. Unfortunately mp3 output doesn't appear to > be supported directly, but you can convert the aiff files to MP3 using > iTunes.) > > To convert a whole folder of files at the same time, you'd do something > like: > find . -name "*.txt" -exec say -f '{}' -o '{}'.m4a ';' Genius! One big problem though - I need seven second gaps between lines of text for me to say what's coming next before the computer says it. I achieved this by putting ". . . . . . ." at the beginning of each line, and this caused Alive Text To Speech to insert seven sentence pauses which creates a nice long gap. Alex however just rushes through without leaving a long gap. Even if I insert ". - : : : : : : : : : : : : : : : : : ; . - ; . - ; . - ; . - ; . - ; . " Alex just gives a tiny pause. Is there any way to get Alex to pause for seven seconds between lines? |