I don’t know how they made it exactly. But this is just a way I created. Something that my mentors always told me is there’s 1000 ways to create a program that does the same thing.
Assuming you’re talking about your camera source, try a few smaller indexes like 0, 1, 2, 3. Also, make sure that you are running your IDE as administrator if you’re on windows or if you’re on mac, make sure that you have your permissions set in system settings that allows your IDE to have access to your camera:)
So saying “okay Google” works on Google phones because their code IS always running. Saying “hey Siri” works on iPhones because their code is always running. For those who do have iPhones, when your battery is low you can go into “Low Power Mode”, then saying “hey Siri” doesn’t work anymore, you have to manually hold down the home or power button. That’s because they turn off the “hey siri” program to save power.
@@SalteeKiller okay sir, i mean here i am making a voice controlled RC car project, and i want to implement your code. i need a voice activation before giving commands to the robot like turn right or left, what should i add in your code so that the code runs continuously and gets voice activation
Yeah sure, of course I can’t do it all for you for all your specifications but To implement continuous voice activation before giving commands to the robot, you can modify the `get_audio()` function to continuously listen for the activation phrase before accepting other commands. Here's how you can do it: ```python def get_audio(): while True: recorder = sr.Recognizer() with sr.Microphone() as source: audio = recorder.listen(source) try: speech_text = recorder.recognize_google(audio) print(speech_text) if "R2-D2" in speech_text: speech("\tHow may I help you?") playsound("./sounds/activate.wav") # Now listen for the actual command after activation while True: audio = recorder.listen(source) command = recorder.recognize_google(audio) if command.strip() != "": return command.strip() else: break except sr.UnknownValueError: print("Google Speech Recognition could not understand audio") except sr.RequestError as e: print("Could not request results from Google Speech Recognition service; {0}".format(e)) ``` This modified function first listens for the activation phrase ("R2-D2"). Once it detects the activation phrase, it prompts the user with a response and then listens for the actual command continuously until one is detected. Once a command is detected, it returns that command for further processing in your code.
bro, i am speaking the text but not getting the youtube page opened. the output terminal is showing this"you said: xyz.............youtube.'. thats it. youtube is not getting opened. please help me bro
Could you provide more details about the error message you're encountering while trying to install PyWhatKit? 1: what’s Python version do you have? 2: what command are you typing in to install? 3: what directory are you in while trying to type in that command? 4: what does the error message say exactly?
1.) python version 3.9 2.) Pip Install pywhatkit 3.) I am using pycharm...I am making an voice assistant. 4.)Error : Failed Building Wheel for Pillow. (While I am downloading pywhatkit in terminal it shows building wheel for pillow was failing) then I also downloaded an pillow but no use.. What to do sir..please tell me 🙏🏻..I am facing this from one week
It seems like the error is related to the Pillow library, a dependency of PyWhatKit. Try installing Pillow separately first using the following command: pip install pillow Make sure you are using an updated version of pip. Once Pillow is installed successfully, attempt to install PyWhatKit again: pip install pywhatkit If the problem persists, you might consider creating a virtual environment and then installing the libraries. Sometimes conflicts between existing packages can cause installation issues. Also, ensure you’re running the commands in an administrator or superuser mode, depending on your system, to avoid permission issues during installation.
was anyone else receiving an error with Pycharm where the lower() Function has a red line under it i think i fixed it just reference the lower() function before you put (variable name).lower()
when playing the pywhatkit library i accidently rick rolled myself.... that playonyt method is pure gold
Bro pywhatkit was not downloading it showing error...what to do
Dude between you and networkchuck you guys have helped me fully transition into the python world and im excited
Pywhatkit showing the first video am requesting…after that any request it shows the same video…thank you Sir…nice tutorials…
someone help this man make some creme brulee
Definitely my friends favorite dessert i make!
I'm going to try to make an ai and this will be very helpful
Yes this will be great starter code for any ai, feel free to share with us what you come up with when you get it going!
It won't let me open pycharm do you have any other suggestions
If you’re on windows you can try Visual Studio code instead
@@SalteeKiller k I'll try it thx
Thank you so much
I’m just watching this because I’m so confused on how apple created siri
I don’t know how they made it exactly. But this is just a way I created. Something that my mentors always told me is there’s 1000 ways to create a program that does the same thing.
Thanks for tutorial
good Bro / thank you
it is saying that the source has some problem
Assuming you’re talking about your camera source, try a few smaller indexes like 0, 1, 2, 3. Also, make sure that you are running your IDE as administrator if you’re on windows or if you’re on mac, make sure that you have your permissions set in system settings that allows your IDE to have access to your camera:)
ummmmmm i am not a big coder so i just follow tutorials and never pay attention@@SalteeKiller
Hello, @SalteeKiller is there a specific version on pycharm you need for it to work cause this is 2024 and you made the video in 2021.
Hi please I tried it but anytime I tried downloading PyAudio I always get error and it’s messing they whole thing up
good sir, thank you, but now how can i add some voice activation before that code, like oke google or whatever i said?
So saying “okay Google” works on Google phones because their code IS always running. Saying “hey Siri” works on iPhones because their code is always running. For those who do have iPhones, when your battery is low you can go into “Low Power Mode”, then saying “hey Siri” doesn’t work anymore, you have to manually hold down the home or power button. That’s because they turn off the “hey siri” program to save power.
@@SalteeKiller okay sir, i mean here i am making a voice controlled RC car project, and i want to implement your code. i need a voice activation before giving commands to the robot like turn right or left, what should i add in your code so that the code runs continuously and gets voice activation
Yeah sure, of course I can’t do it all for you for all your specifications but To implement continuous voice activation before giving commands to the robot, you can modify the `get_audio()` function to continuously listen for the activation phrase before accepting other commands. Here's how you can do it:
```python
def get_audio():
while True:
recorder = sr.Recognizer()
with sr.Microphone() as source:
audio = recorder.listen(source)
try:
speech_text = recorder.recognize_google(audio)
print(speech_text)
if "R2-D2" in speech_text:
speech("\tHow may I help you?")
playsound("./sounds/activate.wav")
# Now listen for the actual command after activation
while True:
audio = recorder.listen(source)
command = recorder.recognize_google(audio)
if command.strip() != "":
return command.strip()
else:
break
except sr.UnknownValueError:
print("Google Speech Recognition could not understand audio")
except sr.RequestError as e:
print("Could not request results from Google Speech Recognition service; {0}".format(e))
```
This modified function first listens for the activation phrase ("R2-D2"). Once it detects the activation phrase, it prompts the user with a response and then listens for the actual command continuously until one is detected. Once a command is detected, it returns that command for further processing in your code.
@@SalteeKiller wow sir, thank you so much
i can't install the pyaudio it's gives million of erroe
I can’t install it too
you need to use a different version
@@hacksoflife2739 Link?
@@4Fingr in the terminal, do pip install pipwin, then type pipwin install pyaudio
@@WizardLight ERROR: PyAudio-0.2.11-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
what platform were you using for creating it
This is PyCharm
Hey i always get Error:ModuleNotFound 'speech_recognition' but im pretty sure i installed it i tried to do everything but it just won't work
@@belal_kh You did not speak clearly to the program, I had the same problem. Try saying "Eat Cereal" and it should work.
@@belal_kh same error someone pls help
Once I code, how should I load that in my iPhone ?
it doesn't let me open PyCharm
Bro i ve followed all of the steps you did but when i run the code all i see is some other code i did not write can you assist me
bro, i am speaking the text but not getting the youtube page opened. the output terminal is showing this"you said: xyz.............youtube.'. thats it. youtube is not getting opened. please help me bro
How to deploy it on our laptop
is it possible code a one work without connecting to the internet...?
Sir "Pywhatkit" is not downloading..it shows wheel building error..
Please help me...tell what to do😢
Could you provide more details about the error message you're encountering while trying to install PyWhatKit?
1: what’s Python version do you have?
2: what command are you typing in to install?
3: what directory are you in while trying to type in that command?
4: what does the error message say exactly?
1.) python version 3.9
2.) Pip Install pywhatkit
3.) I am using pycharm...I am making an voice assistant.
4.)Error : Failed Building Wheel for Pillow.
(While I am downloading pywhatkit in terminal it shows building wheel for pillow was failing) then I also downloaded an pillow but no use..
What to do sir..please tell me 🙏🏻..I am facing this from one week
Please tell me what to do...to clear this error please sir..
It seems like the error is related to the Pillow library, a dependency of PyWhatKit. Try installing Pillow separately first using the following command:
pip install pillow
Make sure you are using an updated version of pip. Once Pillow is installed successfully, attempt to install PyWhatKit again:
pip install pywhatkit
If the problem persists, you might consider creating a virtual environment and then installing the libraries. Sometimes conflicts between existing packages can cause installation issues. Also, ensure you’re running the commands in an administrator or superuser mode, depending on your system, to avoid permission issues during installation.
i have error with distutils how do i fix that
was anyone else receiving an error with Pycharm where the lower() Function has a red line under it i think i fixed it just reference the lower() function before you put (variable name).lower()
Is their a way to make understand Spanish? And thank you for the great tutorial.
in the part 2 where he writes en change that to your language initials
when i use sr it show the transcript of my voice can you help me ?
Make sure you remove any print functions while your program is listening for your key phrase
@@SalteeKiller thanks you but I want to add guide to the siri can you make part 4 about it ?
@@NguyenThiThanhThaoA-dh1bz what feature would you like to add in Siri part 4?
Please can you create ai command assistant that can no wifi that can also talk joke more functional 😢😢😢
i'll implement this in my trashy ai jarvis .. let's see what happens XD
how to this in the arduino.
code pls
github.com/107124/my_alexa
here's the code, however it may include part 2 and 3
is not install 😢
this hardly worked