-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlyrics.py
More file actions
36 lines (30 loc) · 983 Bytes
/
Copy pathlyrics.py
File metadata and controls
36 lines (30 loc) · 983 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
34
35
# import time
# import sys
# import pyttsx3
# engine = pyttsx3.init()
# def printLyrics():
# songName = "Girls Like You"
# lyrics = [
# 'Maybe its 6:45',
# 'Maybe I\'m barely alive',
# "Maybe you have taken my shit for the last time, yeah",
# "Maybe I know that I'm drunk",
# "Maybe I know you're the one",
# "Maybe you thinking it's better if you drive",
# "Oh, cause girls like you run 'round with guys like me",
# "Till sundown when I come through",
# "I need a girl like you, yeah yeah"
# ]
# delay = [0.7, 0.2, 0.5, 0.5, 0.5, 1.1, 0.5, 0.5, 0.3]
# print(songName + "\n")
# time.sleep(1.2)
# for i, line in enumerate(lyrics):
# for char in line:
# sys.stdout.write(char)
# sys.stdout.flush()
# time.sleep(0.06)
# print()
# time.sleep(delay[i])
# engine.say(line)
# engine.runAndWait()
# printLyrics()