This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install speech_recognition with pip install speech_recognition | |
| # Install pyaudio with pip install pyaudio | |
| # Make sure you look up full instructions for installing pyaudio | |
| import speech_recognition as sr | |
| recognizer = sr.Recognizer() | |
| mic = sr.Microphone() | |
| with mic as source: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wolframalpha | |
| client = wolframalpha.Client("lilpumpsaysnopeeking") | |
| import wikipedia | |
| import PySimpleGUI as sg | |
| sg.theme('DarkPurple') | |
| layout =[[sg.Text('Enter a command'), sg.InputText()],[sg.Button('Ok'), sg.Button('Cancel')]] | |
| window = sg.Window('PyDa', layout) |