I am writing a voice assistant in python, and I have a question about how to change the voice that pronounces the words of my voice assistant. Windows 10 operating system. I tried RHVoice but it didn't work. The question is, how can I change my voice in a voice assistant in Python that would support Russian? Here is an example of how I implemented the assistant's speech playback function:
def talk(words):
engine = pyttsx3.init()
engine.say(words)
engine.runAndWait()