Skip to content

Instantly share code, notes, and snippets.

View ricmigs's full-sized avatar

Ricardo Sousa ricmigs

View GitHub Profile
@adameubanks
adameubanks / speech_recognition_example.py
Last active September 2, 2024 08:26
Simple implementation of speech recognition in python
# 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:
@adameubanks
adameubanks / PyDa.py
Created April 11, 2020 01:21
Code for the video where we build a Jarvis like virtual assistant in python 3
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)