From: Elliott Roper on
In article <4bfcfeab$0$27995$db0fefd9(a)news.zen.co.uk>, Basil Jet
<johnr(a)journeyflow.spamspam.com> wrote:
<snip>
> 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?
yep

insert
[[ slnc 7000 ]]
at the points where you want him to shut up for 7000 milliseconds

(I found this and other commands in "Applescript in a Nutshell")

Also
http://developer.apple.com/mac/library/documentation/UserExperience/Conc
eptual/SpeechSynthesisProgrammingGuide/SpeechSynthesisProgrammingGuide.p
df

table 3-1 at p37ff

--
To de-mung my e-mail address:- fsnospam$elliott$$
PGP Fingerprint: 1A96 3CF7 637F 896B C810 E199 7E5C A9E4 8E59 E248
From: Rowland McDonnell on
Chris Ridd <chrisridd(a)mac.com> wrote:

> 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.

There is a much more convenient approach:

How about:

CK's Text-to-Speech to MP3 - 0.93

<http://www.versiontracker.com/dyn/moreinfo/macosx/34221>

found thusly:

<http://www.versiontracker.com/php/qs.php?mode=basic&action=search&str=t
ext+to+speech&srchArea=macosx>

I'd use LAME to create the mp3s from AIFF (if using the above) - you'll
get a better quality in the end for a given bitrate, especially for low
bite rates.

iTunes-LAME Encoder - 2.0.9.34

<http://www.versiontracker.com/dyn/moreinfo/macosx/13048>

I suspect you should be able to automate the two-stage process to stop
it being a pain.

I've got MacOS 10.6; Alex seems to be the best voice currently (set in
System Prefs->System->Speech->Text to speech). The accent grates less
on my ears than the rest of 'em, anyway.

Rowland.

--
Remove the animal for email address: rowland.mcdonnell(a)dog.physics.org
Sorry - the spam got to me
http://www.mag-uk.org http://www.bmf.co.uk
UK biker? Join MAG and the BMF and stop the Eurocrats banning biking
From: Woody on
Andrew Collier <spambucket(a)intensity.org.uk> 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 ';'

Thanks for that.

i didn't want to create any speech files, but I needed to remember how
to resize a group of 500x500 jpgs to 62x62 and the start part was what I
needed, ie:

find .. -name "*.jpg" -exec convert -resize 62x62 '{}' '{}'.1 ';'





--
Woody

www.alienrat.com
From: Basil Jet on
On 26/05/2010 13:39, Elliott Roper wrote:
> In article<4bfcfeab$0$27995$db0fefd9(a)news.zen.co.uk>, Basil Jet
> <johnr(a)journeyflow.spamspam.com> wrote:
> <snip>
>> 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?
> yep
>
> insert
> [[ slnc 7000 ]]
> at the points where you want him to shut up for 7000 milliseconds

Thanks, mission now accomplished. It took me about 10 minutes to edit
and save 300 files in Textedit to globally replace ". . . . . . ." with
[[slnc 7000]]. The find operation worked on nearly all the files, but
curiously created malformed m4a files for a few and hung up the
terminal. I did these manually by typing say in the terminal without
find, and got intermittent segmentation faults, but after trying a few
times I got them all done. Thanks to everyone.
From: Elliott Roper on
In article <4bfe6e07$0$27999$db0fefd9(a)news.zen.co.uk>, Basil Jet
<johnr(a)journeyflow.spamspam.com> wrote:

> On 26/05/2010 13:39, Elliott Roper wrote:
> > In article<4bfcfeab$0$27995$db0fefd9(a)news.zen.co.uk>, Basil Jet
> > <johnr(a)journeyflow.spamspam.com> wrote:
<snip>
> > insert
> > [[ slnc 7000 ]]
> > at the points where you want him to shut up for 7000 milliseconds
>
> Thanks, mission now accomplished. It took me about 10 minutes to edit
> and save 300 files in Textedit to globally replace ". . . . . . ." with
> [[slnc 7000]]. The find operation worked on nearly all the files, but
> curiously created malformed m4a files for a few and hung up the
> terminal. I did these manually by typing say in the terminal without
> find, and got intermittent segmentation faults, but after trying a few
> times I got them all done. Thanks to everyone.

Ace! This thread was an example of ucsm working as designed. I learned
a lot from Andrew Collier's bash magic spells, and felt motivated
enough to chase down some dimly remembered stuff from the days of
Plaintalk on MacOS mumble for the pausing malarkey.

For Chris Ridd:- I'm working on [[ inpt TUNE ]] to get Alex talking
Australian?

--
To de-mung my e-mail address:- fsnospam$elliott$$
PGP Fingerprint: 1A96 3CF7 637F 896B C810 E199 7E5C A9E4 8E59 E248