Skip to content

Commit

Permalink
updated main.py variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
RG-7 committed Nov 25, 2023
1 parent 7cfd4be commit 22ec317
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
print("\t\t\t:- Created by RG-7")
print()
while True:
x = input("Enter what do you want me to speak : ")
if x.lower() == 'q':
user_input = input("Enter what do you want me to speak : ")
if user_input.lower() == 'q':
os.system(f'PowerShell -Command "Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak(\'Thank You for using. See You soon!\');"')
break

command = f'PowerShell -Command "Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak(\'{x}\');"'
command = f'PowerShell -Command "Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak(\'{user_input}\');"'
os.system(command)
print()

0 comments on commit 22ec317

Please sign in to comment.