Help me please I created voice assistant but sometimes it says none. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me please I created voice assistant but sometimes it says none.

I created voice assistant but sometimes it says none when I make it read something, here's the example... elif 'what is' in boss_command: content = boss_command.replace('what is', '') speak(f'gathering information about {content}') info = pywhatkit.info(content,2) speak(info) . here when I say speak(info) it says NONE

7th Aug 2021, 12:31 PM
Sai Charan Vengala
Sai Charan Vengala - avatar
1 Answer
0
You have to add a check like this if not info: speak("your custom message instead of None ")
10th Aug 2021, 11:18 AM
Ankit Tiwari
Ankit Tiwari - avatar