import pyttsx3
engine = pyttsx3.init()

# Voice IDs pulled from engine.getProperty('voices')
# These will be system specific
hi_voice_id_f = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_hiIN_KalpanaM"
hi_voice_id_m = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_hiIN_HemantM"

# Use female English voice
engine.setProperty('voice', hi_voice_id_m)
engine.say('नमस्ते...')
engine.say('हैलो ... मैं vision हूं')

# Use female Russian voice
engine.setProperty('voice', hi_voice_id_f)
engine.say('नमस्ते...')
engine.say('हाय ... मैं wanda हूं')

engine.runAndWait()

0a8490376c0c11cf8560c2fa485270af427d3d7d
<mask token>

<mask token>
engine.setProperty('voice', hi_voice_id_m)
engine.say('नमस्ते...')
engine.say('हैलो ... मैं vision हूं')
engine.setProperty('voice', hi_voice_id_f)
engine.say('नमस्ते...')
engine.say('हाय ... मैं wanda हूं')
engine.runAndWait()

<mask token>
engine = pyttsx3.init()
hi_voice_id_f = (
    'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\MSTTS_V110_hiIN_KalpanaM'
    )
hi_voice_id_m = (
    'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\MSTTS_V110_hiIN_HemantM'
    )
engine.setProperty('voice', hi_voice_id_m)
engine.say('नमस्ते...')
engine.say('हैलो ... मैं vision हूं')
engine.setProperty('voice', hi_voice_id_f)
engine.say('नमस्ते...')
engine.say('हाय ... मैं wanda हूं')
engine.runAndWait()

import pyttsx3
engine = pyttsx3.init()
hi_voice_id_f = (
    'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\MSTTS_V110_hiIN_KalpanaM'
    )
hi_voice_id_m = (
    'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\MSTTS_V110_hiIN_HemantM'
    )
engine.setProperty('voice', hi_voice_id_m)
engine.say('नमस्ते...')
engine.say('हैलो ... मैं vision हूं')
engine.setProperty('voice', hi_voice_id_f)
engine.say('नमस्ते...')
engine.say('हाय ... मैं wanda हूं')
engine.runAndWait()

import pyttsx3
engine = pyttsx3.init()

# Voice IDs pulled from engine.getProperty('voices')
# These will be system specific
hi_voice_id_f = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_hiIN_KalpanaM"
hi_voice_id_m = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_hiIN_HemantM"

# Use female English voice
engine.setProperty('voice', hi_voice_id_m)
engine.say('नमस्ते...')
engine.say('हैलो ... मैं vision हूं')

# Use female Russian voice
engine.setProperty('voice', hi_voice_id_f)
engine.say('नमस्ते...')
engine.say('हाय ... मैं wanda हूं')

engine.runAndWait()
