summaryrefslogtreecommitdiffstats
path: root/src/plugins/tts/android/src/qtexttospeech_android_plugin.cpp
blob: 8cb259860c5465550208e3c604502bc4c7e3cb67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2015 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only

#include "qtexttospeech_android_plugin.h"
#include "qtexttospeech_android.h"

QT_BEGIN_NAMESPACE

Q_LOGGING_CATEGORY(lcSpeechTtsAndroid, "qt.speech.tts.android")

QTextToSpeechEngine *QTextToSpeechPluginAndroid::createTextToSpeechEngine(
        const QVariantMap &parameters, QObject *parent, QString *errorString) const
{
    Q_UNUSED(errorString);
    QTextToSpeechEngineAndroid *android = new QTextToSpeechEngineAndroid(parameters, parent);
    if (android) {
        return android;
    }
    delete android;
    return 0;
}

QT_END_NAMESPACE