[BASICS] create a virtual assistant with python & VOSK library in the most DETAILED and EASY way

Аватар автора
Python проверка
----------beginner level------------ What makes this video stand out is not only the content of the video, but also the additional in-depth instructions for the video below: ----------beginner level------------if you want to learn about making an ai assistant at an -----advanced level-----, comment bellow and I will post a video about that using PyTorch. hi, my name is Bach currently I am in grade 10. [update]: I am in grade 11 now ❗❗❗basic code structure of this AI assistant (I bet that you can not find any better beginner structure of code for "AI assistant-using Vosk" on the internet) ❌code on the internet: if "some thing" in result['text']: stream.stop_stream() print(&&+ result['text']) speak(& stream.start_stream() code can not recognize sounds efficiently and accurately after a while ✅Code I figured out: if "some thing" in result['text']: os.system('cls') stream.stop_stream() print(&&+ result['text']) speak('hello') stream.close() cap.terminate() cap=pyaudio.PyAudio() stream=cap.open(format=pyaudio.paInt16, channels=1, rate=16000, input=True, frames_per_buffer=8192) stream.start_stream() ############################ FAQ: Why I added these lines:" stream.close() cap.terminate() cap=pyaudio.PyAudio()...

0/0


0/0

0/0

0/0