Python Voice Assistant Tutorial #2 - Getting Microphone Input

preview_player
Показать описание
Welcome to part 2 of creating a voice assistant with python. In this tutorial we will get microphone input from the user using the module pyaudio and speech_recognition.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
- Tech With Tim
- Python Tutorials
- Python Voice Assistant
- Voice Assistant Python
- Python Virtual Assistant Tutorial
- Voice Assistant Tutorial Python

#python #VoiceAssistant #SpeechRecognition
Рекомендации по теме
Комментарии
Автор

Man I love how we are at tutorial number 2 and I already have everything I need to create a full app. Keep it up, Tim. Great videos!

HitraNtheProgrammer
Автор

import playsound
from gtts import gTTS


def speak(text):
tts = gTTS(text=text)
filename = "voice.mp3"
tts.save(filename)



speak("Hello World")

This worked adequately for me...

arjunmane
Автор

You can already do so much with the knowledge of that series! Great!

heinzbeckenbauer
Автор

You're my favourite python channel

floydian
Автор

Idea. Voice driven text based game. "North", "North", "Southeast", "Get Lamp", "Northwest", "South", "South", "Offer Lamp"... "You have been rewarded 500 experience."

budoray
Автор

If anyone is having an issue where they are speaking into the microphone but nothing will print and the program runs with no errors try putting this after you use the microphone as source: r.adjust_for_ambient_noise(source, duration=1)

AsimAli-jpjn
Автор

Hey, just wanted to say thanks for the pygame tutorials, and showing your projects for inspiration. Thanks to you I started creating my own projects, my versions of hangman and paint program as of now, and uploaded them to youtube. I sometimes got help from your videos or codes when I got stuck. I will continue programming and creating projects of my own in the future, thanks again, keep up the great work!

BurakUnutmaz
Автор

Love u Tim, nice video, clear voice when speaking and you teach well, thanks for this video. Keep it goin bro

jayamankrah
Автор

you freaking saved me man you made me cry
this code here helped me gain over 5k a week

mostafamrabet
Автор

Great work Tim but i have a drought, will inbuild laptop mic work for it

pranshusahu
Автор

As u told, we can use playsound to save the file and that file we can hear it instead of that, we can run,
import pyttsx3
engine = pyttsx3.init()
engine.say("Hello")
engine.runAndWait()

Its not that i am telling u wrong but we can make the code simple.

abhinavchappeta
Автор

bro u r the best guy best these programming stuff i like the innovation and creativity u have

MVCS_SpandanMN
Автор

I love this tutorial now i can combine this with An AI to anwser anything

AfrinFoodVlog
Автор

great video and great project, it really helped and encouraged me to (finally) install python and use it for a class

LicDeFresa
Автор

After a nightmare, I mannaged to make it work with sphinx in spanish mx, tnx bro!

marcosmimenza
Автор

Tim, my man. If there is anyone struggling with PyAudio windows 10, anaconda, use try conda install PyAudio. It worked for me after hours and hours of fail. Looking forward for the nxt video.

michaelmutekeri
Автор

your video is quite helpful to my final project!!

leochang
Автор

Hey Tim! Thanks much for the videos. They're amazing, keep up the great work. Can this be integrated with any of the frameworks out there so that we don't have to add if conditional blocks everywhere?

vikasdeshpande
Автор

hello tim. Im not a native speaker so that i want you to add subtitles to your videos ty :D btw i like your videos you are very helpfull

EzioOmer
Автор

Hi Tim, it's Chuck here.


I've just started coding my own virtual assistant following your tutorials, and I was wondering if you know how to switch from female voice to male voice. Any advice would be highlt appreciated.


Thanks in advance my man!

DonkeyMonkeys
welcome to shbcf.ru