Example #1
0
void Speech::slotNotificationClosed(Snore::Notification notificatiom) {
    // TODO: que notifications on our side and make sure to only stop playback of the canceled notification
    if (notificatiom.closeReason() != Snore::Notification::TimedOut && m_speech->state() == QTextToSpeech::Speaking) {
        m_speech->stop();
    }
}