[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: D6386: [Digital Clock] Allow speaking out loud current time
From: Kai Uwe Broulik <noreply () phabricator ! kde ! org>
Date: 2017-06-26 9:30:36
Message-ID: differential-rev-PHID-DREV-fvuyhah3kgafqwnjo2hx-req () phabricator ! kde ! org
[Download RAW message or body]
broulik created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY
This re-introduces the ability to automatically speak out loud the current time in \
intervals configured by the user (between every minute and every hour). It uses \
QtTextToSpeech module when available.
TEST PLAN
Even if I installed `libqt5texttospeech5` on neon I did not get working speech \
synthesis as it was missing the speechd plugin (Bug 381523)
Because of QLocale limitations I had to go great lengths to figure out whether I \
should be announcing in 24 hour format or 12 with "am/pm".
Verified that switching 12/24 in digital clock still worked (both checkbox and \
`LANG` variable) and also that it affects the voice in the same way. Gives you a "It \
is eleven twenty-nine aaaammm" robot voice of doom. We don't have any configuration \
utility in System Settings for voice yet, right?
Also verified that when QtTextToSpeech is not installed, this feature gets \
completely disabled including the config option that will be hidden.
Settings dialog with combo box and a speaker icon to test the voice.
F3792915: Screenshot_20170622_145632.png <https://phabricator.kde.org/F3792915>
REVISION DETAIL
https://phabricator.kde.org/D6386
AFFECTED FILES
applets/digital-clock/package/contents/config/main.xml
applets/digital-clock/package/contents/ui/DigitalClock.qml
applets/digital-clock/package/contents/ui/configAppearance.qml
applets/digital-clock/plugin/CMakeLists.txt
applets/digital-clock/plugin/digitalclockplugin.cpp
applets/digital-clock/plugin/texttospeech.cpp
applets/digital-clock/plugin/texttospeech.h
To: broulik, #plasma, #vdg
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, \
abetts, sebas, apol, mart, lukas
[Attachment #3 (unknown)]
<table><tr><td style="">broulik created this revision.<br />Restricted Application \
added a project: Plasma.<br />Restricted Application added a subscriber: \
plasma-devel. </td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px \
8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; \
background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); \
display: inline-block; border: 1px solid rgba(71,87,120,.2);" \
href="https://phabricator.kde.org/D6386" rel="noreferrer">View \
Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This \
re-introduces the ability to automatically speak out loud the current time in \
intervals configured by the user (between every minute and every hour). It uses \
QtTextToSpeech module when available.</p></div></div><br /><div><strong>TEST \
PLAN</strong><div><p>Even if I installed <tt style="background: #ebebeb; font-size: \
13px;">libqt5texttospeech5</tt> on neon I did not get working speech synthesis as it \
was missing the speechd plugin (Bug 381523)</p>
<p>Because of QLocale limitations I had to go great lengths to figure out whether I \
should be announcing in 24 hour format or 12 with "am/pm".</p>
<p>Verified that switching 12/24 in digital clock still worked (both checkbox and <tt \
style="background: #ebebeb; font-size: 13px;">LANG</tt> variable) and also that it \
affects the voice in the same way. Gives you a "It is eleven twenty-nine \
aaaammm" robot voice of doom. We don't have any configuration utility in \
System Settings for voice yet, right?</p>
<p>Also verified that when QtTextToSpeech is not installed, this feature gets \
completely disabled including the config option that will be hidden.</p>
<p>Settings dialog with combo box and a speaker icon to test the voice.<br />
<a href="https://phabricator.kde.org/F3792915" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F3792915: \
Screenshot_20170622_145632.png</a></p></div></div><br /><div><strong>REVISION \
DETAIL</strong><div><a href="https://phabricator.kde.org/D6386" \
rel="noreferrer">https://phabricator.kde.org/D6386</a></div></div><br \
/><div><strong>AFFECTED \
FILES</strong><div><div>applets/digital-clock/package/contents/config/main.xml<br /> \
applets/digital-clock/package/contents/ui/DigitalClock.qml<br /> \
applets/digital-clock/package/contents/ui/configAppearance.qml<br /> \
applets/digital-clock/plugin/CMakeLists.txt<br /> \
applets/digital-clock/plugin/digitalclockplugin.cpp<br /> \
applets/digital-clock/plugin/texttospeech.cpp<br /> \
applets/digital-clock/plugin/texttospeech.h</div></div></div><br /><div><strong>To: \
</strong>broulik, Plasma, VDG<br /><strong>Cc: </strong>plasma-devel, ZrenBot, \
progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, \
lukas<br /></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic