Manage event loops with startLoop() and endLoop()
masterThe engine requires an event loop to process commands and fire callbacks.
- Driver Loop (
useDriverLoop=True): The engine uses the driver's internal loop. This is the default. - External Loop (
useDriverLoop=False): The caller is responsible for providing the loop. If you use an external loop, you must manually callengine.iterate()within that loop to pump events.
To stop a running loop, use engine.endLoop(). To stop the current utterance and clear the queue, use engine.stop().