Read text from a website

geddonn's icon

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?

geddonn's icon
Max Patch
Copy patch and select New From Clipboard in Max.

So I've managed to do this:

But I can't seem to work out a way to get rid of ""

any ideas?

williamjturkel's icon

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

geddonn's icon

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

geddonn's icon

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.

williamjturkel's icon

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