Vcaluc
Vcaluc
import speech_recognition as sr
import math
from sympy import sympify, pi, sqrt
from word2number import w2n # To convert words to numbers
def voice_calculator():
# Function for speaking text
def speak(audio):
engine.say(audio)
engine.runAndWait()
if command:
command = command.lower()
else:
speak("Please say your command again.")
print("Please say your command again.\n")
if __name__ == '__main__':
voice_calculator()