Enqueue new text if added while the engine is busy


Calling enqueue() should be equivalent to say() when the engine
is Ready, otherwise it should enqueue the text. The old
implementation only enqueued the text when the engine was
in Speaking state, overriding the current utterance when the
engine was already synthesizing, or paused.

Adjust test to enqueue the next text chunk as soon as the
engine transitions away from the Ready state.

Pick-to: 6.7 6.6
Fixes: QTBUG-122884
Change-Id: I19518a92d1ae73b01dc3de1d9ae6178f5f55b3ad
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
commit037fcecfaa40645994038f28f5d8ca98b80d6afd
parent6b3aea3898a8c4e066d3fe423a6308c14608d9f6
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeTue, 5 Mar 2024 16:59:26 +0100