+ 22
Help me !!!!!! [Unsolved]
I am still trying to make a web program which contains speech recognition and speech synthesis (p5.speech.js) but it is not working in my android (chrome, sololearn). Why ????? Even my code has no errors but still it's not working!!! 😭😭😭😭😭 Check my code !!!!!!!! Guys , is there any solution available??? Do share and upvote this question if you don't know the answer, so that others can answer it. https://code.sololearn.com/Ww0BSD7VLqI7/?ref=app
5 Réponses
+ 9
"TypeError: p5.Speech is not a constructor", this is the error message I see when I click the button when using sololearn web and sololearn android app.
You need to add p5.speech library to your code.
https://code.sololearn.com/WA250a12A118
+ 4
Please be aware the the web speech api, which p5.speech makes use of, is an experimental technology, some of its properties are not be supported by some browsers.
Be sure to check the browser compatibility
https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API#browser_compatibility
jic - sololearn android app uses webview android as a browser.
+ 3
I can't find any entry for p5.Speech in the p5 reference, I don't think it exists.
+ 2
Solution = magic
+ 1
I'm Finding it difficult! I need more explanation pls!
Time to go shopping!
Everything in the store has been discounted by 20%.
You are given a program that takes the price of an item as input. Complete the program so that it outputs the discounted price to the console.
Sample Input
100
Sample Output
80
Explanation
20 percent of 100 equals to 20 (100 * 20/100), so the discounted price will be 80 (100 - 20).