diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-03-29 20:05:01 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-04-05 09:49:29 +0200 |
commit | c88b1fdd3f146a87cea7e3ece0e413c4a50911ae (patch) | |
tree | f4f2d6c24499658a11cf5906bd1cbaee9a6e403d /doc/src | |
parent | a2fc398d1d7dd17d536de47b72ee1ee93064aeb5 (diff) | |
download | qtdoc-c88b1fdd3f146a87cea7e3ece0e413c4a50911ae.tar.gz |
Document new Qt TextToSpeech features in Qt 6.6
Change-Id: Idceca36d323bbeacf6058ec9b8ee165b14ee630a
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/whatsnew/whatsnew66.qdoc | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/doc/src/whatsnew/whatsnew66.qdoc b/doc/src/whatsnew/whatsnew66.qdoc index 219fb038..cd9acf59 100644 --- a/doc/src/whatsnew/whatsnew66.qdoc +++ b/doc/src/whatsnew/whatsnew66.qdoc @@ -102,8 +102,30 @@ \section2 Qt TextToSpeech Module + The QTextToSpeech class learned a few more tricks that are available with all + engines: + \list - \li Nothing to see here. //! TODO Clean this up before release. + \li Applications can add multiple chunks of text to a synthesizing engine + via \l{QTextToSpeech::}{sayNext}. + \li The new \l{QTextToSpeech::}{aboutToSynthesize} signal gets emitted just + before a chunk of text gets synthesized. + \endlist + + Not all new features are available with every engine. Applications can use the + new \l{QTextToSpeech::}{Capabilities} flag and \l{QTextToSpeech::}{engineCapabilities} + property to check which of the following new features the currently used engine + supports: + + \list + \li If the engine has the \l{QTextToSpeech::Capabilities}{Synthesize} + capability, QTextToSpeech can now synthesize text into PCM data. The + \l{QTextToSpeech::}{synthesize} function can be used with a callable that + receives chunks of PCM data as a QByteArray and QAudioFormat asynchronously, + or it can emit a signal carrying a chunk of data when it has been synthesized. + \li If the engine has the \l{QTextToSpeech::Capabilities}{WordByWordProgress} + capability, QTextToSpeech emits the \l{QTextToSpeech::}{sayingWord} signal + for each word in the current chunk of text as it gets spoken. \endlist \section2 Qt WebEngine Module |