Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speech #10

Open
AlexPitre opened this issue Oct 27, 2017 · 3 comments
Open

speech #10

AlexPitre opened this issue Oct 27, 2017 · 3 comments

Comments

@AlexPitre
Copy link

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.

@AlexPitre
Copy link
Author

p.s. the piezo is working great on the wood

@AlexPitre
Copy link
Author

p.p.s. the more I work on it, the more questions I have.

@chjno
Copy link
Owner

chjno commented Oct 30, 2017

Hey!

I just got the simple speech synthesis example working from the p5.speech website. Here's the example: http://alpha.editor.p5js.org/chjno/sketches/Sy_MPT40Z

I added the p5.speech.js library manually, the same way we added the p5.serialport.js library.

I don't have time right now to dig deeper but lmk if that helps or if you have any more questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants