+ 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

2nd May 2021, 10:29 AM
#It's Tony Stark
#It's Tony Stark - avatar
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
2nd May 2021, 2:42 PM
ODLNT
ODLNT - avatar
+ 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.
2nd May 2021, 6:53 PM
ODLNT
ODLNT - avatar
+ 3
I can't find any entry for p5.Speech in the p5 reference, I don't think it exists.
3rd May 2021, 12:45 PM
Shahil Ahmed
Shahil Ahmed - avatar
+ 2
Solution = magic
3rd May 2021, 11:09 AM
zxtychj
zxtychj - avatar
+ 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).
4th May 2021, 10:31 AM
Kebiru Idakwo
Kebiru Idakwo - avatar