diff options
Diffstat (limited to 'examples/speech/hello_speak/main.py')
-rw-r--r-- | examples/speech/hello_speak/main.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/speech/hello_speak/main.py b/examples/speech/hello_speak/main.py new file mode 100644 index 000000000..b025dd6c0 --- /dev/null +++ b/examples/speech/hello_speak/main.py @@ -0,0 +1,20 @@ +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +"""PySide6 port of the hello_speak example from Qt v6.x""" + +import sys + +from PySide6.QtCore import QLoggingCategory +from PySide6.QtWidgets import QApplication + +from mainwindow import MainWindow + + +if __name__ == "__main__": + QLoggingCategory.setFilterRules("qt.speech.tts=true\nqt.speech.tts.*=true") + + app = QApplication(sys.argv) + win = MainWindow() + win.show() + sys.exit(app.exec()) |