Closed lladdy closed 2 years ago
Hi, I'm a first time open source contributor and would love to give this a try. Could you please elaborate on what is expected to be done here?
Where do I find the source code that needs to be rectified?
Welcome @opelolo
I think the code that triggers the voice announcement is here: https://github.com/aiarena/aiarena-twitch/blob/master/aiarena-player.py#L155
It probably needs to be moved to run before the ExampleObserver.exe command is run. I suspect the ExampleObserver.exe command blocks while the SC2 replay is running, and so the voice announcement then runs afterwards. It's also possible that both could be run in simultaneously.
hi! is this issue resolved or is someone working on it?
Welcome @opelolo
I think the code that triggers the voice announcement is here: https://github.com/aiarena/aiarena-twitch/blob/master/aiarena-player.py#L155
It probably needs to be moved to run before the ExampleObserver.exe command is run. I suspect the ExampleObserver.exe command blocks while the SC2 replay is running, and so the voice announcement then runs afterwards. It's also possible that both could be run in simultaneously.
Thanks. I will work on it then. Please assign the issue to me. Thanks
hi! is this issue resolved or is someone working on it?
I'm on it
@lladdy hi,
I managed to create a command to run the voice announcement code before the ExampleObserver.exe. Please review and give me feedback. Not sure I did the right thing. Thank you
Possibly ExampleObserver blocks the script flow until game ends. Moving TTS announcement to before running it should fix it.
It appears the voice announcement is playing for the most recent replay, not the replay that's about to be played.
Might be due to something not being updated before the voice announcement is run.