From: Chris Ridd on
On 2010-05-27 14:52:00 +0100, Elliott Roper said:

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

You can buy extra (regional) voices from somewhere can't you? ISTR
James posting a link to some a while ago.

So give Alex the boot, and see if there's a Jiff or even just a better Bruce.
--
Chris

From: Woody on
Woody <usenet(a)alienrat.co.uk> wrote:

> 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 ';'
>
> 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 ';'

So on that (which I have done) I had a bit of a problem with filenames.

The line above will end up with lots of files called blah.jpg.1 which I
thought I could just batch rename, although that didn't work as well as
I thought. What I realy wanted was them prefixed, so the code could find
them.

If I did:

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

it failed saying htings like:
Can't open file s_ ./blah.jpg

How would I have done that?

In the end I just copied them to another folder where they were included
in xcode, then ran it on the same filenames in and out and that was
fine.



--
Woody
From: Jim on
On 2010-05-27, Chris Ridd <chrisridd(a)mac.com> wrote:
> On 2010-05-27 14:52:00 +0100, Elliott Roper said:
>
>> For Chris Ridd:- I'm working on [[ inpt TUNE ]] to get Alex talking
>> Australian?
>
> You can buy extra (regional) voices from somewhere can't you? ISTR
> James posting a link to some a while ago.
>
> So give Alex the boot, and see if there's a Jiff or even just a better Bruce.

If you could get a HAL9000 voice (Douglas Rain) I'd really like that.

Jim
--
Twitter:@GreyAreaUK

"If you have enough book space, I don't want to talk to you."
Terry Pratchett
From: Basil Jet on
On 27/05/2010 14:52, Elliott Roper wrote:
> In article<4bfe6e07$0$27999$db0fefd9(a)news.zen.co.uk>, Basil Jet
> <johnr(a)journeyflow.spamspam.com> wrote:
>>
>> 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.

I forgot to mention... I used to be a Unix programmer, but have used
nothing but PCs for the last 20 years. Having just moved to a Mac I have
been feeling very out of my depth. Using the Terminal shell has turned
this odd white slab into a machine that I control and understand... so a
special big thanks to Mr Collier for that!
From: Chris Ridd on
On 2010-05-27 15:15:47 +0100, Woody said:

> If I did:
>
> find . -name "*.jpg" -exec convert -resize 62x62 '{}' s_'{}' ';'
>
> it failed saying htings like:
> Can't open file s_ ./blah.jpg

Because find adds the directory you're starting from (ie ".") to the
front of every filename.

> How would I have done that?

I'd use a shell loop, and sed if I really wanted to munge the filename
(like changing extensions), something like this:

for jpeg in *.jpg; do
fixed=`echo "$jpeg" | sed -e 's/^/s_/'`
convert -resize 62x62 "$jpeg" "$fixed"
done

--
Chris