Skip to content

Commit ee6a022

Browse files
authored
Add files via upload
Utility for Matrix-Matrix Multiplication code file
1 parent 1f897c9 commit ee6a022

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: Audio_Utilities.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# from IPython.display import Audio
2+
# from gtts import gTTS as g
3+
# def play_after_line(my_string):
4+
# tts = g(my_string)
5+
# tts.save('1.wav')
6+
# file = '1.wav'
7+
# Audio(file, autoplay=True)
8+
9+
import pyttsx3
10+
def play_after_line(my_string):
11+
engine = pyttsx3.init()
12+
engine.say(my_string)
13+
engine.runAndWait()
14+
15+
# play_after_line("Hey there!")

0 commit comments

Comments
 (0)