Day 22
passwd pi
import os, time
time.sleep(1) function makes the program pause for 1 second
def robot(text): os.system("espeak ' " + text + " ' ")
robot("Hello how are you doing today?")
sudo nano /usr/share/alsa/alsa.conf change the line "pcm.front cards.pcm.front" to "pcm.front cards.pcm.default"
Example:
robot("What is your name?") name = input("What is your name? ") robot("Nice to meet you " + name) time.sleep(1) # more spoken questions and inputs