You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script= input("Enter Filename to ReadFrom (With Extension): ")
file = open(Script)
text = file.read()
a= ''
language = 'en'
b= int(input("which accent do you want? \n 1) Australian \n 2) American \n 3) British \n 4)Indian \n 5) Canadian \n 6) Irish \n 7) South African \n 8) Spanish \n 9) French \n\n(Select the number corresponding): "))
if b == 1:
a = 'com.au'
elif b == 2:
a = 'com'
elif b == 3:
a = 'co.uk'
elif b == 4:
a = 'co.in'
elif b == 5:
a = 'ca'
elif b == 6:
a = 'ie'
elif b == 7:
a = 'co.za'
elif b == 8:
a = 'es'
obj= gTTS(text=text, lang=language, slow=False, tld= a )
Filename= input("Enter Audio Filename to Save (With Extension): ")