Help me to enable the text to speech in this code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
8th Apr 2019, 4:24 AM
Piyush Kumar
Piyush Kumar - avatar
8 Answers
+ 2
responsiveVoice.speak(text, "UK English Male", {pitch:1}); In the above line, you are speaking the string content of a variable called text. Assign the time information into text. So that the voice will tell the actual time instead of the word "time"
8th Apr 2019, 9:26 AM
Gordon
Gordon - avatar
+ 1
I tried to overload the error() but doesn't work. https://code.sololearn.com/W9mViqBpcK1J/?ref=app
8th Apr 2019, 8:45 AM
Gordon
Gordon - avatar
+ 1
But you can hear the male voice, don't you?
8th Apr 2019, 8:48 AM
Gordon
Gordon - avatar
+ 1
Yes it is working. The male voice is there. You cannot hear?
8th Apr 2019, 9:21 AM
Gordon
Gordon - avatar
0
Ok😔
8th Apr 2019, 8:46 AM
Piyush Kumar
Piyush Kumar - avatar
0
I want to hear the output that comes after my input. Just like an assistant.
8th Apr 2019, 9:20 AM
Piyush Kumar
Piyush Kumar - avatar
0
He says "time". That is the problem, he is saying "time" but i want him to say the what the time is.
8th Apr 2019, 9:22 AM
Piyush Kumar
Piyush Kumar - avatar
0
Thanx a lot. It worked. Thankss. Thanks thanks.
8th Apr 2019, 9:44 AM
Piyush Kumar
Piyush Kumar - avatar