Yes, many ways to do it. For example create a Windows shortcut to run the script and bind it to a hotkey. Or add some keypress detection to the script itself nitratine.net/blog/post/how-to-detect-key-presses-in-python/. In a future video I want to look at how to turn the assistant into a program that runs as an application in Windows, maybe with a nice visualization when it speaks too.
Honestly I think that piper tts sounds better(voice en_US-lessac-medium), it is fast and if you want to make it even better you can use voice changer on tts, but that might be to slow.
Hi Thank you for such great series! Could I ask you a question on a bug? line 100: speech_sound = pygame.mixer.Sound(speech) error message: Exception has occurred: error Couldn't read first 4 bytes of audio data File "/Users/williamw/Documents/ai-assistant-main/main.py", line 100, in speak speech_sound = pygame.mixer.Sound(speech) File "/Users/williamw/Documents/ai-assistant-main/main.py", line 194, in speak('All systems nominal.', 120)
No audio data is coming through when it's trying to speak. If you try things with pyttsx3 by running an instance of Python and importing it, can you get it to say anything?
What a boss! Thanks! I also got a question is it also possible that the content can be copied to the clipboard. Like for example that i say copy shopify A record to my clipboard?
Certainly. Some of the steps for installing the Google Cloud are different but you can use the code on Windows too. I've got it running in my Windows machine as well.
@@mikaelcodes You can also add openai library, this will significantly increase the capabilities of the AI. You can literally use ChatGPT on your machine without opening the browser
@@andrewjaeger you're absolutely right! In fact I started on a video on that but haven't had time to finish. It's very fun being able to talk to the computer and get ChatGPT to answer
loving the AI assistant videos, any chance you can expand it with calendar processing? but in the long run any video's on AI would be great :)
is there a way to have a keyboard shortcut that runs the program while you're doing something else? (this code is really useful!)
Yes, many ways to do it. For example create a Windows shortcut to run the script and bind it to a hotkey. Or add some keypress detection to the script itself nitratine.net/blog/post/how-to-detect-key-presses-in-python/. In a future video I want to look at how to turn the assistant into a program that runs as an application in Windows, maybe with a nice visualization when it speaks too.
Hi when i play through it the speech is twice as fast as it should be i tried chaning the frequency but it didnt work do you know the fix?
Are you using the local or Google voice setting? For local you can adjust the rate variable.
Honestly I think that piper tts sounds better(voice en_US-lessac-medium), it is fast and if you want to make it even better you can use voice changer on tts, but that might be to slow.
powered by GPT?
Hello Mikael im just a bit confused on how i get the cloud shell into VS Code and use it when im on windows?
You should be able to just download the installer for the gcloud CLI and run it: cloud.google.com/sdk/docs/install
Oh no way this is cool 😮
Is there one that doesn't use google cloud, but hosted locally?
yeah pyttsx3
Hi Thank you for such great series! Could I ask you a question on a bug?
line 100: speech_sound = pygame.mixer.Sound(speech)
error message:
Exception has occurred: error
Couldn't read first 4 bytes of audio data
File "/Users/williamw/Documents/ai-assistant-main/main.py", line 100, in speak
speech_sound = pygame.mixer.Sound(speech)
File "/Users/williamw/Documents/ai-assistant-main/main.py", line 194, in
speak('All systems nominal.', 120)
No audio data is coming through when it's trying to speak. If you try things with pyttsx3 by running an instance of Python and importing it, can you get it to say anything?
@@mikaelcodes yes I got it work, it said "hello world"
@@mikaelcodes but it sill give the error... could we do a quick zoom debug section if possible?:)
@@williamwang-wc8mp Hey, we can try during the week if it works for you. Can you see my email in the channel details?
What a boss! Thanks! I also got a question is it also possible that the content can be copied to the clipboard. Like for example that i say copy shopify A record to my clipboard?
Yes you could program it to copy something to your clipboard. Pyperclip might be a good module to use for this: pypi.org/project/pyperclip/
@@mikaelcodes yes thanks, i already did it and its working nicely now. Thanks
Is there any way to do this on Windows?
Certainly. Some of the steps for installing the Google Cloud are different but you can use the code on Windows too. I've got it running in my Windows machine as well.
@@mikaelcodes You can also add openai library, this will significantly increase the capabilities of the AI. You can literally use ChatGPT on your machine without opening the browser
@@andrewjaeger you're absolutely right! In fact I started on a video on that but haven't had time to finish. It's very fun being able to talk to the computer and get ChatGPT to answer
Ima make the on ai from iron man
you amazing. this stuff is idiot proof. please, please, more content
Takes one to cater for one! Thank you, I'll make one or two more videos this weekend.