Hello there!
I want to loop through all available speech synthesis voices and store them so that I can easily change the voice with a function.
But when I try to do Voices.Get(variable) it always returns 0. When I log variable it returns the correct string. If I put this exact string manually in Voices.Get it works flawlessly as well.
That is the main event page. Voices is the dictionary name by the way.
This is the function.
And that is what is safed in the dictionary. Seen in debug mode.
What am I doing wrong here? I also tried things like Voices.Get(str(variable)), switching the function to async, waits and stuff. :(
Thanks for helping! :D