In a use case (like automated UI tests to be monitored by a human) where you want to start the TTS, then perform actions, and then wait for the TTS to finish, there should be a waiting function Tts::wait().
You can incorporate the significant parts of this type into the Tts type:
In a use case (like automated UI tests to be monitored by a human) where you want to start the TTS, then perform actions, and then wait for the TTS to finish, there should be a waiting function
Tts::wait()
.You can incorporate the significant parts of this type into the
Tts
type:Alternatively, the API could use
async
/await
.