How to CODE Siri or Alexa | Python for BEGINNERS Coding with SalteeKiller a Virtual Assistant Part 1

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 63

  • @vkogasmodeous2306
    @vkogasmodeous2306 2 года назад +5

    when playing the pywhatkit library i accidently rick rolled myself.... that playonyt method is pure gold

    • @Mani-jf2hu
      @Mani-jf2hu 7 месяцев назад

      Bro pywhatkit was not downloading it showing error...what to do

  • @svnbeats6700
    @svnbeats6700 Год назад +3

    Dude between you and networkchuck you guys have helped me fully transition into the python world and im excited

  • @ushabothra7912
    @ushabothra7912 Год назад +2

    Pywhatkit showing the first video am requesting…after that any request it shows the same video…thank you Sir…nice tutorials…

  • @NE0NBEATS
    @NE0NBEATS 2 года назад +5

    someone help this man make some creme brulee

    • @SalteeKiller
      @SalteeKiller  2 года назад

      Definitely my friends favorite dessert i make!

  • @tiddly_ogee2949
    @tiddly_ogee2949 2 года назад +7

    I'm going to try to make an ai and this will be very helpful

    • @SalteeKiller
      @SalteeKiller  2 года назад +2

      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!

    • @tiddly_ogee2949
      @tiddly_ogee2949 2 года назад +2

      It won't let me open pycharm do you have any other suggestions

    • @SalteeKiller
      @SalteeKiller  2 года назад +1

      If you’re on windows you can try Visual Studio code instead

    • @tiddly_ogee2949
      @tiddly_ogee2949 2 года назад

      @@SalteeKiller k I'll try it thx

  • @dorisanima2806
    @dorisanima2806 2 месяца назад

    Thank you so much

  • @Sam2Reel
    @Sam2Reel 2 года назад +7

    I’m just watching this because I’m so confused on how apple created siri

    • @SalteeKiller
      @SalteeKiller  2 года назад +7

      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.

  • @Niegazowana
    @Niegazowana Год назад +1

    Thanks for tutorial

  • @lanhquangong6478
    @lanhquangong6478 3 года назад +2

    good Bro / thank you

  • @minecraftmacjava123
    @minecraftmacjava123 8 месяцев назад +2

    it is saying that the source has some problem

    • @SalteeKiller
      @SalteeKiller  8 месяцев назад +2

      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:)

    • @minecraftmacjava123
      @minecraftmacjava123 7 месяцев назад

      ummmmmm i am not a big coder so i just follow tutorials and never pay attention@@SalteeKiller

    • @minecraftmacjava123
      @minecraftmacjava123 21 день назад

      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.

  • @miiyyke
    @miiyyke Год назад +1

    Hi please I tried it but anytime I tried downloading PyAudio I always get error and it’s messing they whole thing up

  • @Arif_Hana
    @Arif_Hana 5 месяцев назад +1

    good sir, thank you, but now how can i add some voice activation before that code, like oke google or whatever i said?

    • @SalteeKiller
      @SalteeKiller  5 месяцев назад +2

      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.

    • @Arif_Hana
      @Arif_Hana 5 месяцев назад +1

      @@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

    • @SalteeKiller
      @SalteeKiller  5 месяцев назад +1

      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.

    • @Arif_Hana
      @Arif_Hana 5 месяцев назад

      @@SalteeKiller wow sir, thank you so much

  • @wyn9946
    @wyn9946 2 года назад +4

    i can't install the pyaudio it's gives million of erroe

    • @4Fingr
      @4Fingr 2 года назад +1

      I can’t install it too

    • @hacksoflife2739
      @hacksoflife2739 2 года назад

      you need to use a different version

    • @4Fingr
      @4Fingr 2 года назад

      @@hacksoflife2739 Link?

    • @WizardLight
      @WizardLight 2 года назад +1

      @@4Fingr in the terminal, do pip install pipwin, then type pipwin install pyaudio

    • @4Fingr
      @4Fingr 2 года назад

      @@WizardLight ERROR: PyAudio-0.2.11-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

  • @masterroyalgaming9024
    @masterroyalgaming9024 3 года назад +3

    what platform were you using for creating it

    • @SalteeKiller
      @SalteeKiller  3 года назад +3

      This is PyCharm

    • @belal_kh
      @belal_kh 2 года назад

      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

    • @freddyd1783
      @freddyd1783 2 года назад

      @@belal_kh You did not speak clearly to the program, I had the same problem. Try saying "Eat Cereal" and it should work.

    • @broonbro7594
      @broonbro7594 Год назад

      @@belal_kh same error someone pls help

  • @fanig1458
    @fanig1458 2 года назад +1

    Once I code, how should I load that in my iPhone ?

  • @gamingwithliam5221
    @gamingwithliam5221 2 года назад +1

    it doesn't let me open PyCharm

  • @Lateshspinxter
    @Lateshspinxter 7 месяцев назад

    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

  • @dathatreyasastry2005
    @dathatreyasastry2005 4 месяца назад

    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

  • @user-th2mv2mq1t
    @user-th2mv2mq1t Месяц назад

    How to deploy it on our laptop

  • @alan.n.a6206
    @alan.n.a6206 Год назад

    is it possible code a one work without connecting to the internet...?

  • @Mani-jf2hu
    @Mani-jf2hu 7 месяцев назад +1

    Sir "Pywhatkit" is not downloading..it shows wheel building error..
    Please help me...tell what to do😢

    • @SalteeKiller
      @SalteeKiller  7 месяцев назад +1

      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?

    • @Mani-jf2hu
      @Mani-jf2hu 7 месяцев назад +1

      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

    • @Mani-jf2hu
      @Mani-jf2hu 7 месяцев назад +1

      Please tell me what to do...to clear this error please sir..

    • @SalteeKiller
      @SalteeKiller  7 месяцев назад +1

      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.

  • @dlfx2532
    @dlfx2532 6 месяцев назад

    i have error with distutils how do i fix that

  • @EvoVR-i7w
    @EvoVR-i7w Год назад

    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()

  • @mooremusic4394
    @mooremusic4394 Год назад +1

    Is their a way to make understand Spanish? And thank you for the great tutorial.

    • @BellaSaunders23
      @BellaSaunders23 Год назад

      in the part 2 where he writes en change that to your language initials

  • @NguyenThiThanhThaoA-dh1bz
    @NguyenThiThanhThaoA-dh1bz Год назад +1

    when i use sr it show the transcript of my voice can you help me ?

    • @SalteeKiller
      @SalteeKiller  Год назад

      Make sure you remove any print functions while your program is listening for your key phrase

    • @NguyenThiThanhThaoA-dh1bz
      @NguyenThiThanhThaoA-dh1bz Год назад +1

      @@SalteeKiller thanks you but I want to add guide to the siri can you make part 4 about it ?

    • @SalteeKiller
      @SalteeKiller  Год назад

      @@NguyenThiThanhThaoA-dh1bz what feature would you like to add in Siri part 4?

  • @GABRIELDAVID-zv8vo
    @GABRIELDAVID-zv8vo 7 месяцев назад

    Please can you create ai command assistant that can no wifi that can also talk joke more functional 😢😢😢

  • @trashyAIguy
    @trashyAIguy Год назад

    i'll implement this in my trashy ai jarvis .. let's see what happens XD

  • @Beatmatrix11
    @Beatmatrix11 Год назад

    how to this in the arduino.

  • @goushiksam3865
    @goushiksam3865 2 года назад +2

    code pls

    • @SalteeKiller
      @SalteeKiller  2 года назад +1

      github.com/107124/my_alexa
      here's the code, however it may include part 2 and 3

  • @amanuelaman6156
    @amanuelaman6156 Год назад

    is not install 😢

  • @sskpln
    @sskpln Год назад

    this hardly worked