Create OM NAMAH SHIVAY JAP MANTRA based application using Python
This application require, pyttsx3 based library to convert text to speech.
install
pip install pyttsx3
write this code.
import time
import pyttsx3
engine = pyttsx3.init()
engine.setProperty('rate', 150) # Speed of speech (words per minute)
engine.setProperty('volume', 0.8) # Volume (0.0 to 1.0)
count=1
while True:
print("OM NAMAH SHIVAY")
engine.say("OM NAM AH SHIV AY ")
engine.runAndWait()
time.sleep(2)
print(count)
count=count+1
if count>10:
break
POST Answer of Questions and ASK to Doubt