forked from satinder147/DeepWay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvoice.py
More file actions
33 lines (26 loc) · 760 Bytes
/
voice.py
File metadata and controls
33 lines (26 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from pygame import mixer
class Voice:
def right(self):
mixer.init()
mixer.music.load('right.mp3')
mixer.music.play()
def left(self):
mixer.init()
mixer.music.load('left.mp3')
mixer.music.play()
def stop_left(self):
mixer.init()
mixer.music.load('stop_left.mp3')
mixer.music.play()
def stop_right(self):
mixer.init()
mixer.music.load('stop_right.mp3')
mixer.music.play()
def peopleOnRight(self):
mixer.init()
mixer.music.load('face_right.mp3')
mixer.music.play()
def peopleOnLeft(self):
mixer.init()
mixer.music.load('face_left.mp3')
mixer.music.play()