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?
So I’ve managed to do this:
----------begin_max5_patcher---------- 541.3ocuU10aaBCEF9Z3WgEWyb3ivWUSSaWseDSSUFvMwcfMx1zPVU+uO6CP ZSWxTHaKbAfO19bd4gWa+rqiWoXfp7P2g9Fxw4YWGGHjMfyTaGuVxPUCQACy qkpTjMTO+w9zzAMDuVri2HH0nsZc2cqV8.kVqvkkULbk.2+iUb5N0JoRgGZa PsDsjMLmjFFmVI54PlhlB1QzUaY7M2KoU5QEFFDiC7QQqg6wo1GwQ3.z2mlC uukwanZ0aSDqFDnn7wOjkNWxGDbMmzRgt9hjQZ7dMGhd8bRBmhNFRuuiNJEO uCE0lJE6mPGgF0Xi9hqq8l+eIT+XMUUIYcZlf+ouZpugGn8hdIRradvkapDM B4DgrHI.GmFjku19VZdTbRrusiCB9DjMKxNwPCRCKxSiKLuGkCgRV.dSV+eF uEWEcMNOi59M39HSiUZIVKT6aKEGT3oLd4.XCCCwIlGAAPqryglvSflE67hN KZ7uo3QR2PG5PeVRQGYGwGeckqkyWCDMZbg8hHZ1RIZx4Hp4S894cjVRqaze g9l5+n4bjjof2b8UXMK9mYMWNdfg.ll2cJD7gZieLyTlM+plK2rM.EenRFGp YSRh0g91AYV8gdkHaY00Tn+f4owTjxFJ.kS+26h0SwQk5L5I61omzKQOlMtQ g2D8jcQ5o3J4ynchz08DUplxIHEyhsGGOjL0GZx3iMgL5IoOwlGehqMau39K uI8JaB -----------end_max5_patcher-----------
But I can’t seem to work out a way to get rid of ""
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
Aha! thank you. I hadn’t thought of regexp. I think this is going to help me a lot.
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.