Reply To: Error when integrating the NeatSpeech demo

Home Forums OpenEars plugins Error when integrating the NeatSpeech demo Reply To: Error when integrating the NeatSpeech demo

#14895
Halle Winkler
Politepix

OK, I see a few issues. The first is that the tutorial gives an example of how to do the memory management for both FliteController and FliteController+Neatspeech voices, and it’s a good idea to use it since it avoids issues related to memory management. This looks like the initialization occurs inside of an instance method of a shared object, which seems like there are a few ways it could be going wrong. There’s no need to put NeatSpeech inside a singleton or do something with queueing since NeatSpeech manages its own queue internally and it is multithreaded and expects to be instantiated in one view controller, not in a singleton whose thread we don’t know.

I would just set it up like the tutorial example:

https://www.politepix.com/openears/tutorial