ohos: Return the TTS proxy instead of a factory


tryMakeTextToSpeechProxyFactory() created one engine eagerly and
returned a std::function handing out that same shared_ptr, which read
as a factory while being a supplier of a fixed instance. Return the
proxy directly and promote setEngineEventsListener() to the
TextToSpeechProxy interface, so the engine attaches its listener after
construction.

Task-number: QTBUG-147179
Pick-to: 6.12
Change-Id: Ia907c1541c684f54b120885c861e4b427c2f5b44
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
commit81dd3bc5c76e0aa558eacf2b45acc7353ee332a4
parent989bb80265213e87371d24374f2fd77bdbb1974e
authorArkadiusz Zarębski <arkadiusz.zarebski@qt.io>
committerArkadiusz Zarębski <arkadiusz.zarebski@qt.io>
commit timeThu, 17 Sep 2026 08:35:29 +0000