No video
Voice Assistant with Wake Word in Python
In this video, we learn how to build an intelligent AI voice assistant, which reacts to a chosen wake word.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
Timestamps:
(0:00) Intro
(0:23) Preview
(2:25) Coding Voice Assistant
(18:45) Demonstration
(19:46) Outro
Пікірлер: 102
Intents is a nice piece of kit. Well done! More importantly thanks for giving it to the world!
For people trying this out after the month August 2023, you guys should check out the documentation for the package because they made changes that makes the code in the video and the new code different. Make sure you're also in version 0.1.0 of the package neuralintents
@tortysoft
10 ай бұрын
Can you please say exactly what is different? The code as it stands fails ModuleNotFoundError: No module named 'AppKit'
@dxs_nightwolff
9 ай бұрын
Couldn't find the code for this. 20 min is a lot... :( Can you help?
i can listen to intro music on loop for hours so good, also great tutorial
Very nice, maybe you could make a series creating an assistant like Jake with more commands or functions, it would be quite interesting and instructive
@nkemakolaugoji7452
Жыл бұрын
You are right He should put this into serious consideration
Damn this looks incredible !!!
This is great! I'm going to have a play with it later! I have been wanting to make a basic windows based app to query a real-time local database to get some commonly requested values while being hands-free, and not being in front of the screen. Your masterpiece seems like it will get the job done pretty easily! Thanks so much for sharing your expertise and knowledge!
@gekyume9128
Жыл бұрын
were you able to do it?
awesome video!!!
Absolutely brilliant 💕💕💕it
You made my day with this one!
Very cool.
What other libraries do I need for this to work? Only those shown in the video or additional ones?
Nice. may you kindly show how to add more functionalities to Jake. Thank you.
You are the best bro
awesome!
Can I get all the code in a machine readable format, inc. your module?
hello, can I export my Speech Recognition in python to android app?
pc keeps freezing up when running this. not sure why. Initially it was a "decay" is deprecated but i added "legacy" to the import in neuralintents
Is there a way for the assistant to develop responses automatically? and how would you get it to learn things that you do not write in the json file, such as if you train it so much, it will learn automated tasks, such as opening a simple window or other things
@alby13
3 ай бұрын
if you mean to spontaneously talk to you, LLMs don't natively do this. they work by responding to a prompt. they don't use their AI to think of something interesting to say. it would be great if they could also have a AI component to think about what to say. very futuristic.
This is quite helpfull, but I want to know how the modules work and how the recogniton works rather than importing a module that does it for you
For me it stops after threading and mainloop starts only if threading was stopped
Can we use natural voicing APIs with the same program such as speechelo, revoicer etc. How to make this program useable for general public who don't know programming?
when i run the code it loaded and after few second its "Process finished with exit code 0" also do not give any error i am using pycharm community as compiler Please help me
When I run this, it tells me that the requested array has an inhomogeneous shape. Can someone help?
Keep getting this error what do I do? "AttributeError: module 'collections' has no attribute 'MutableMappingMapping'"
Good video. But there are some packages incompatible with this example in 2023. Protobuf 4.25.1 is incompatible as it seems he is using protobuf=3.19.6.
Hi sir , I written the code same as yours but im getting this below error ValueError: decay is deprecated in the new Keras optimizer, pleasecheck the docstring for valid arguments, or use the legacy optimizer,
@TBDG5310
Жыл бұрын
Getting the same problem here, seems like it's something to do with the neuralintents import since Keras optimizer doesn't get called in the code used in the video. No idea how to fix it
@tonyflash1498
Жыл бұрын
same problem did you fix it?
This is awesome if works. Let me try
can you make a full GUI theme like this please
What compiler do you use sir?
@jmsal5556
Жыл бұрын
Pycharm by Jetbrains
It is showing pip is not recognised as an internal or external command, operable program or batch file
i keep getting value error what does that mean
i cant import neural intents any help?
Imagine run test automation using this, try please 😗
what is version python
Hi! your programs are easy to follow , but this one I followed line for line ,but get this error. Traceback (most recent call last): File "C:\Python311\Jake\main.py", line 65, in Assistant() File "C:\Python311\Jake\main.py", line 19, in __init__ self.assistant.train_model() File "C:\Python311\Lib\site-packages euralintents\main.py", line 97, in train_model training = np.array(training) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (20, 2) + inhomogeneous part. can you help with this? thanks
@iqrashaikh7998
11 ай бұрын
I'm having the same would you help?
I ran the exact code but i keep getting this error. Can someone please help me. [nltk_data] Error loading punkt: [nltk_data] Error loading wordnet:
speaker attribute error anyone have solution for this
I keep getting an error when I try to install the 'neuralintents' library, is there another?
Is there a way to change ta voice of it ? I want to use a custom voice .
@firoz400
Жыл бұрын
You can clone a voice , search voice cloning on youtube, then put that voice in text to speech library
getting this error Cannot install neuralintents==0.0.1, neuralintents==0.0.2, neuralintents==0.0.3 and neuralintents==0.0.4 because these package versions have conflicting dependencies
@jochenschmidt7032
Жыл бұрын
could it be that your on a raspberry pi? because neuralintents depends on an other package which is only available for x64 bit systems, but you can get that for raspberry pi
@DstokesncstudioOrg
Жыл бұрын
@@jochenschmidt7032 not using one right now
@jochenschmidt7032
Жыл бұрын
@@DstokesncstudioOrg Any other 32-bit system?
@DstokesncstudioOrg
Жыл бұрын
@@jochenschmidt7032 no I'm using amd
@jochenschmidt7032
Жыл бұрын
@@DstokesncstudioOrg OK No Idea then sorry
I got a type error that is __init__() got an unexpected keyword argument 'intent_methods' please give solution for that
@amraam8723
3 ай бұрын
Replace with: intents.data(........)
Can we have the JSON file
Speech recognition and pyttx3 are not working for me the pycharm and visual studio dont recognize them even though i installed them numerous times pls help
@aidengilbert126
Жыл бұрын
same i have no idea how to fix it
@learntoteach1
Жыл бұрын
@@aidengilbert126 same
@sherlockholmes3552
Жыл бұрын
You have to install them in cmd(command prompt)
@layaprada2804
Жыл бұрын
@@sherlockholmes3552 did that and it still doesn't work
@sherlockholmes3552
Жыл бұрын
@@layaprada2804 Okay I don't know But I was working on this 3 months ago Try it again and look for another solution maybe I'm sorry to say I can't help you right now
I'm getting these errors in Assistant() in __init__ self.assistant.load_model() self.model = load_model(f'{self.model_name}.keras') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ raise ValueError( ValueError: File not found: filepath=basic_model.keras. Please ensure the file is an accessible `.keras` zip file. how do I fix these errors?
Didn't work. I get this error: AttributeError: module 'tensorflow.python.training.experimental.mixed_precision' has no attribute '_register_wrapper_optimizer_cls'. Something worng in neuralintents when outcommanding "from neuralintents import GenericAssistant" there's no error.
@SpoobyDooVillian
Жыл бұрын
You pip install pyaudio?
@privateeye242
Жыл бұрын
@@SpoobyDooVillian Yes, I had installed pyaudio.
Code pls?
Code?
i am need intents.json erorr with code o
training = np.array(training) ^^^^^^^^^^^^^^^^^^ ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (11, 2) + inhomogeneous part. pls any one solve my error
@Pinuk_
11 ай бұрын
same error mate got any solutions ?
@infi-dkgaming8658
11 ай бұрын
same error bro. I guess intent library is outdated right now so we must use a different library.
Want to code it on Android using termux
i am shocked in video like this there is only 601 like's with 14k view's really that's why i hate this world if a girl even polishing his boot then that video would have more then 20k like's but -------------------- look at here just speechless
Couldn't find the code for this. 20 min is a lot... :(
Sir I am not able to install neuralintents
@alessandrochiri6315
Жыл бұрын
me either
Can you please provide us this code ??❤
@aniketpatil4430
Жыл бұрын
hi
bro create a voice assistant give output in text or voice and add openAi
Traceback (most recent call last): File "C:\Users\Jericho Nicolas\PycharmProjects\pythonProject1\main.py", line 63, in Assistant() File "C:\Users\Jericho Nicolas\PycharmProjects\pythonProject1\main.py", line 18, in __init__ self.assistant = GenericAssistant("intents.json", intent_methods={"file": self.create_file}) ^^^^^^^^^^^^^^^^ AttributeError: 'Assistant' object has no attribute 'create_file' this is what I get how can i fix it?
@Ice-on7xs
Жыл бұрын
You forgot to make the "create_file" function
@abhishektripathi3904
Жыл бұрын
Got the same problem. Any solution to that?
I need project
i have this error guys and i dont know how to fix it. please help Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. training = np.array(training)
@felipevalencian7196
Жыл бұрын
How did you fix it ?
4:30 JSON creat
it is not working
pls also provide source codes
Hey there, I'm getting this error while pip install neuralintents; ''' G:\My Drive\VS Code Files>pip install neuralintents Defaulting to user installation because normal site-packages is not writeable Collecting neuralintents Using cached neuralintents-0.0.4-py3-none-any.whl (5.0 kB) Collecting numpy Using cached numpy-1.23.4-cp311-cp311-win_amd64.whl (14.6 MB) Collecting nltk Using cached nltk-3.7-py3-none-any.whl (1.5 MB) Collecting neuralintents Using cached neuralintents-0.0.3-py3-none-any.whl (5.0 kB) Using cached neuralintents-0.0.2-py3-none-any.whl (4.3 kB) Using cached neuralintents-0.0.1-py3-none-any.whl (2.6 kB) ERROR: Cannot install neuralintents==0.0.1, neuralintents==0.0.2, neuralintents==0.0.3 and neuralintents==0.0.4 because these package versions have conflicting dependencies. The conflict is caused by: neuralintents 0.0.4 depends on tensorflow neuralintents 0.0.3 depends on tensorflow neuralintents 0.0.2 depends on tensorflow neuralintents 0.0.1 depends on tensorflow To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict ERROR: ResolutionImpossible: for help visit pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts ''' Kindly help..
@EstherHiiragi
Жыл бұрын
I fixed it with downloading ptyhon 3.10.9
thxs but next time can you delete the out dated video
First :)
On my machine I get "this was complied with AVX instructions and none were found in your machine". I found a non AVX instruction set tensor flow. But now when I run my program, it will not run any of my python scripts (intent file doesn't seem to call it). Happens with Python 3.8 and python 3.10. Have you seen this error?
- Hi Joi - Hi Anon, You're beautiful and I love you - .... :)
Lel I just want joi :) from blade runner.
the code give me this error ValueError: decay is deprecated in the new Keras optimizer, pleasecheck the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.SGD.
@kaoutaarzn3335
Жыл бұрын
sgd = SGD(learning_rate=0.01, momentum=0.9, nesterov=True) sgd = tf.keras.optimizers.legacy.SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True)
@TBDG5310
Жыл бұрын
@@kaoutaarzn3335 How exactly does this help? Like where do I put this code since the code in the video doesn't directly call from the imports that are at fault