Read text from a website

Jun 24, 2012 at 8:41pm

Read text from a website

Hi guys, I’m trying to make a patch that reads text from a website and can have the function to speak it (either somehow using the speech function on OSX or using syllables that I record myself.

I know I can view a website in max using jWeb but am having trouble finding a way to get the raw text into max.

Has anyone tried anything like this or know of a way to do this?

#43856
Jun 24, 2012 at 10:11pm

So I’ve managed to do this:

– Pasted Max Patch, click to expand. –

But I can’t seem to work out a way to get rid of “”

any ideas?

#157508
Jun 27, 2012 at 12:00pm

You can use another regular expression to process the message coming out of [jit.str.tosymbol]. Just put the following before the message that is displaying your output

regexp @substitute %0

#157509
Jun 27, 2012 at 10:33pm

Aha! thank you. I hadn’t thought of regexp. I think this is going to help me a lot.

#157510
Jun 27, 2012 at 10:36pm

My question now then, I guess, is how to split syllables. and then how to detect their vowel or consonant sound in context of a word.

#157511
Jun 28, 2012 at 12:57am

If you don’t mind avoiding the linguistic analysis into phonemes :) you might try the [aka.speech] object

http://www.iamas.ac.jp/~aka/max/#aka_speech

#157512

You must be logged in to reply to this topic.