xxxxxxxxxx
var foo = new p5.Speech(); // this is a speech synthesizer object
var s = "yo";
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
textSize(80);
}
function draw() {
}
function mousePressed()
{
background(255);
text(s, mouseX, mouseY);
foo.speak(s);
}