You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put the speech synthesis library in and I added the script line into the index.
the sample code the library gives is:
var foo = new p5.Speech(); // speech synthesis object
foo.speak('hi there'); // say something
I get an error message saying that p5.Speech is not a constructor. I put it in the setup and the draw loop, but idk which one is correct. All the tutorials I found online were way over my head. I'm just trying to understand how to put it into the code I have to read the text on the screen.
The text was updated successfully, but these errors were encountered:
I put the speech synthesis library in and I added the script line into the index.
the sample code the library gives is:
var foo = new p5.Speech(); // speech synthesis object
foo.speak('hi there'); // say something
I get an error message saying that p5.Speech is not a constructor. I put it in the setup and the draw loop, but idk which one is correct. All the tutorials I found online were way over my head. I'm just trying to understand how to put it into the code I have to read the text on the screen.
The text was updated successfully, but these errors were encountered: