diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/speech/hello_speak/doc/src/hellospeakex.qdoc | 1 | ||||
-rw-r--r-- | examples/speech/hello_speak/mainwindow.h | 2 | ||||
-rw-r--r-- | examples/speech/quickspeech/doc/images/quickspeech-example.png | bin | 0 -> 34979 bytes | |||
-rw-r--r-- | examples/speech/quickspeech/doc/src/quickspeech.qdoc | 42 | ||||
-rw-r--r-- | examples/speech/quickspeech/main.qml | 2 | ||||
-rw-r--r-- | examples/speech/quickspeech/quickspeech.pro | 1 |
6 files changed, 46 insertions, 2 deletions
diff --git a/examples/speech/hello_speak/doc/src/hellospeakex.qdoc b/examples/speech/hello_speak/doc/src/hellospeakex.qdoc index 2a9e787..d1950c9 100644 --- a/examples/speech/hello_speak/doc/src/hellospeakex.qdoc +++ b/examples/speech/hello_speak/doc/src/hellospeakex.qdoc @@ -28,6 +28,7 @@ /*! \example speech/hello_speak \title Hello Speak Example + \ingroup texttospeech_examples \brief The Hello Speak example reads out a small piece of text. diff --git a/examples/speech/hello_speak/mainwindow.h b/examples/speech/hello_speak/mainwindow.h index da1b8f9..872e590 100644 --- a/examples/speech/hello_speak/mainwindow.h +++ b/examples/speech/hello_speak/mainwindow.h @@ -57,7 +57,7 @@ #include "ui_mainwindow.h" -#include <QTextToSpeech> +#include <QtTextToSpeech> class MainWindow : public QMainWindow { diff --git a/examples/speech/quickspeech/doc/images/quickspeech-example.png b/examples/speech/quickspeech/doc/images/quickspeech-example.png Binary files differnew file mode 100644 index 0000000..03a2f60 --- /dev/null +++ b/examples/speech/quickspeech/doc/images/quickspeech-example.png diff --git a/examples/speech/quickspeech/doc/src/quickspeech.qdoc b/examples/speech/quickspeech/doc/src/quickspeech.qdoc new file mode 100644 index 0000000..fd37130 --- /dev/null +++ b/examples/speech/quickspeech/doc/src/quickspeech.qdoc @@ -0,0 +1,42 @@ +/**************************************************************************** +** +** Copyright (C) 2022 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the documentation of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:FDL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Free Documentation License Usage +** Alternatively, this file may be used under the terms of the GNU Free +** Documentation License version 1.3 as published by the Free Software +** Foundation and appearing in the file included in the packaging of +** this file. Please review the following information to ensure +** the GNU Free Documentation License version 1.3 requirements +** will be met: https://www.gnu.org/licenses/fdl-1.3.html. +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/*! + \example speech/quickspeech + \title Quick Speech Example + \ingroup texttospeech_examples + \brief Using text-to-speech in a Qt Quick application. + + \e{Quick Speech} example demonstrates how the TextToSpeech type can be used + from QML to read out text, as well as control the pitch, volume, and rate + of the speech. It also lets you select a language and voice, if additional + languages and voices are found. + + \image hellospeak-example.png + + \include examples-run.qdocinc +*/ diff --git a/examples/speech/quickspeech/main.qml b/examples/speech/quickspeech/main.qml index cd3589e..b788279 100644 --- a/examples/speech/quickspeech/main.qml +++ b/examples/speech/quickspeech/main.qml @@ -51,7 +51,7 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts -import QtSpeech.TextToSpeech +import QtTextToSpeech ApplicationWindow { id: root diff --git a/examples/speech/quickspeech/quickspeech.pro b/examples/speech/quickspeech/quickspeech.pro new file mode 100644 index 0000000..3f53fd7 --- /dev/null +++ b/examples/speech/quickspeech/quickspeech.pro @@ -0,0 +1 @@ +error(This example can be run directly with the qml tool!) |