diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-05-10 08:54:54 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-05-10 09:44:24 +0200 |
commit | e9e2f3259a20c1dc91eebde9a50bda000162a61e (patch) | |
tree | 3f46905d208acaecd8fee050546269b753b20dcf /src | |
parent | 39ed76ecfcbdc56382fa88a61c2641e624aed909 (diff) |
QTextToSpeech: rename sayNext to enqueue
The text passed into the function is not said next, it's said at the end
of the currently pending texts.
Change-Id: Ic0ea885b65cdd8d7a055616fc9098d3c8cd3d397
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/tts/qtexttospeech.cpp | 18 | ||||
-rw-r--r-- | src/tts/qtexttospeech.h | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/tts/qtexttospeech.cpp b/src/tts/qtexttospeech.cpp index b16d0f3..9b0c978 100644 --- a/src/tts/qtexttospeech.cpp +++ b/src/tts/qtexttospeech.cpp @@ -616,9 +616,9 @@ QTextToSpeech::State QTextToSpeech::state() const This signal gets emitted just before the engine starts to synthesize the speech audio for \a text. Applications can use this signal to make last-minute changes to \l voice attributes, or to track the process of text enqueued - via sayNext(). + via enqueue(). - \sa sayNext(), voice + \sa enqueue(), voice */ /*! @@ -628,9 +628,9 @@ QTextToSpeech::State QTextToSpeech::state() const This signal gets emitted just before the engine starts to synthesize the speech audio for \a text. Applications can use this signal to make last-minute changes to \l voice attributes, or to track the process of text enqueued - via sayNext(). + via enqueue(). - \sa sayNext(), synthesize(), voice + \sa enqueue(), synthesize(), voice */ /*! @@ -760,7 +760,7 @@ QString QTextToSpeech::errorString() const set to \l Speaking once the reading starts. When the reading is done, \l state will be set to \l Ready. - \sa sayNext(), stop(), pause(), resume(), synthesize() + \sa enqueue(), stop(), pause(), resume(), synthesize() */ void QTextToSpeech::say(const QString &text) { @@ -773,7 +773,7 @@ void QTextToSpeech::say(const QString &text) } /*! - \qmlmethod TextToSpeech::sayNext(string text) + \qmlmethod TextToSpeech::enqueue(string text) Adds \a text to the queue of text to be spoken, and starts speaking. @@ -806,7 +806,7 @@ void QTextToSpeech::say(const QString &text) \sa say(), stop(), aboutToSynthesize(), synthesize() */ -void QTextToSpeech::sayNext(const QString &text) +void QTextToSpeech::enqueue(const QString &text) { Q_D(QTextToSpeech); if (!d->m_engine || text.isEmpty()) @@ -947,7 +947,7 @@ void QTextToSpeech::synthesizeImpl(const QString &text, The reading cannot be resumed. Whether the \a boundaryHint is respected depends on the engine. - \sa say(), sayNext(), pause(), QTextToSpeech::BoundaryHint + \sa say(), enqueue(), pause(), QTextToSpeech::BoundaryHint */ /*! @@ -957,7 +957,7 @@ void QTextToSpeech::synthesizeImpl(const QString &text, The reading cannot be resumed. Whether the \a boundaryHint is respected depends on the engine. - \sa say(), sayNext(), pause() + \sa say(), enqueue(), pause() */ void QTextToSpeech::stop(BoundaryHint boundaryHint) { diff --git a/src/tts/qtexttospeech.h b/src/tts/qtexttospeech.h index 7ff5232..bc06114 100644 --- a/src/tts/qtexttospeech.h +++ b/src/tts/qtexttospeech.h @@ -181,7 +181,7 @@ public: public Q_SLOTS: void say(const QString &text); - void sayNext(const QString &text); + void enqueue(const QString &text); void synthesize(const QString &text); void stop(QTextToSpeech::BoundaryHint boundaryHint = QTextToSpeech::BoundaryHint::Default); void pause(QTextToSpeech::BoundaryHint boundaryHint = QTextToSpeech::BoundaryHint::Default); |