Posts

Showing posts with the label Alexa With Python

Alexa with Python

Image
Make your own Alexa with Python | Python Beginner Some Basic Python Command to make AI-type Assistant... import   speech_recognition   as   sr import   pyttsx3 import   pywhatkit import   datetime import   wikipedia import   pyjokes listener  =  sr . Recognizer () engine  =  pyttsx3 . init () voices  =  engine . getProperty ( 'voices' ) engine . setProperty ( 'voice' ,  voices [ 1 ].id) def   talk ( text ):      engine . say ( text )      engine . runAndWait () def   take_command ():               with   sr . Microphone ()  as   source :              print ( 'listening...' )              voice  =  listener . listen ( source )       ...