[Solved] RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)

RuntimeError: run loop already started raise RuntimeError(‘run loop already started’)
Error Codes:

self.engine.say(content)
self.engine.runAndWait()
self.engine.stop()

Error message

raise RuntimeError('run loop already started')
RuntimeError: run loop already started

Solution:

self.engine.say(content)
self.engine.runAndWait()
self.engine.endLoop()   # add this line
self.engine.stop()

Read More: