https://www.mythtv.org/wiki?title=MythSpeech&feed=atom&action=historyMythSpeech - Revision history2024-03-28T10:47:18ZRevision history for this page on the wikiMediaWiki 1.27.7https://www.mythtv.org/wiki?title=MythSpeech&diff=56978&oldid=prevMonkeypet: Added category.2012-12-31T16:55:03Z<p>Added category.</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 16:55, 31 December 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l105" >Line 105:</td>
<td colspan="2" class="diff-lineno">Line 105:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>I welcome any feedback, as well as thoughts on the mythlcdserver approach vs Qt accessibility vs NCAM vs something I haven't thought of.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>I welcome any feedback, as well as thoughts on the mythlcdserver approach vs Qt accessibility vs NCAM vs something I haven't thought of.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Plugins]]</ins></div></td></tr>
<!-- diff cache key mythwiki:diff:version:1.11a:oldid:56901:newid:56978 -->
</table>Monkeypethttps://www.mythtv.org/wiki?title=MythSpeech&diff=56901&oldid=prevFaginbagin: Reorganize and polish2012-12-22T19:09:35Z<p>Reorganize and polish</p>
<a href="//www.mythtv.org/wiki?title=MythSpeech&diff=56901&oldid=56537">Show changes</a>Faginbaginhttps://www.mythtv.org/wiki?title=MythSpeech&diff=56537&oldid=prevMonkeypet: Added link to github.2012-10-16T02:24:15Z<p>Added link to github.</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 02:24, 16 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>MythSpeech will use speechd to vocalize the menu navigation.  This can assist with visually impaired people who want to enjoy mythtv.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>MythSpeech will use speechd to vocalize the menu navigation.  This can assist with visually impaired people who want to enjoy mythtv.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">The sources can be found on github: https://github.com/monkeypet/mythtv </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This was [http://www.gossamer-threads.com/lists/mythtv/users/530319#530319 posted] by Helen on the mythtv-user group:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This was [http://www.gossamer-threads.com/lists/mythtv/users/530319#530319 posted] by Helen on the mythtv-user group:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l34" >Line 34:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Lee and Monkey Pet have my first version. Since then I've added support for live TV and for mythmusic. Here's a link to the second version:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Lee and Monkey Pet have my first version. Since then I've added support for live TV and for mythmusic. Here's a link to the second version:</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">http://www.hbuus.com/~buus/mythspeech-0.3.tgz</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://www.hbuus.com/~buus/mythspeech-0.2.tgz</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://www.hbuus.com/~buus/mythspeech-0.2.tgz</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Extract the file's contents with the command:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Extract the file's contents with the command:</div></td></tr>
<!-- diff cache key mythwiki:diff:version:1.11a:oldid:56475:newid:56537 -->
</table>Monkeypethttps://www.mythtv.org/wiki?title=MythSpeech&diff=56475&oldid=prevMonkeypet: Added Link to Helen's post.2012-10-10T17:18:20Z<p>Added Link to Helen's post.</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 17:18, 10 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>MythSpeech will use speechd to vocalize the menu navigation.  This can assist with visually impaired people who want to enjoy mythtv.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>MythSpeech will use speechd to vocalize the menu navigation.  This can assist with visually impaired people who want to enjoy mythtv.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>This was posted by Helen on the mythtv-user group<del class="diffchange diffchange-inline">.</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>This was <ins class="diffchange diffchange-inline">[http://www.gossamer-threads.com/lists/mythtv/users/530319#530319 </ins>posted<ins class="diffchange diffchange-inline">] </ins>by Helen on the mythtv-user group:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">TODO</del>: <del class="diffchange diffchange-inline">Add link to the post.</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>You're quite right, I have been talking privately to Lee, also Monkey Pet, another developer interested in the topic. Since you've expressed interest, here's what's going on. I've been quietly following the posts on this topic and thinking and researching and tinkering, time permitting.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>You're quite right, I have been talking privately to Lee, also Monkey Pet, another developer interested in the topic. Since you've expressed interest, here's what's going on. I've been quietly following the posts on this topic and thinking and researching and tinkering, time permitting.</div></td></tr>
<!-- diff cache key mythwiki:diff:version:1.11a:oldid:56468:newid:56475 -->
</table>Monkeypethttps://www.mythtv.org/wiki?title=MythSpeech&diff=56468&oldid=prevMonkeypet: Initial Creation2012-10-10T02:58:34Z<p>Initial Creation</p>
<p><b>New page</b></p><div>MythSpeech will use speechd to vocalize the menu navigation. This can assist with visually impaired people who want to enjoy mythtv.<br />
<br />
This was posted by Helen on the mythtv-user group.<br />
<br />
TODO: Add link to the post.<br />
<br />
You're quite right, I have been talking privately to Lee, also Monkey Pet, another developer interested in the topic. Since you've expressed interest, here's what's going on. I've been quietly following the posts on this topic and thinking and researching and tinkering, time permitting.<br />
<br />
What I finally settled on was to modify mythlcdserver to talk to speech-dispatcher via its libspeechd library. You can read about it here:<br />
<br />
http://devel.freebsoft.org/speechd<br />
It is what Ubuntu 12.04's screen reader, Orca, uses.<br />
<br />
I had first tried to do something with the work done by NCAM (National Center for Accessible Media), which can be found here:<br />
http://ncam.wgbh.org/invent_build/analog/speech-solutions-for-next-generation-media-centers/technical-notes-on-talking-myt<br />
<br />
But things have changed so much since that was done (on mythtv 0.21 in 2008) that I abandoned it. FWIW, I had actually managed to get it working on mythbuntu 10.04.<br />
<br />
Next, I started looking at using Qt's approach, which would require implementing Qt accessibility classes. If this were done, mythfrontend would then talk to the Orca screen reader. I have confirmed that, at least one other QT application, vlc, can generate speech through Orca and speech-dispatcher. More info on Qt accessibility support can be found in these links:<br />
http://qt-project.org/doc/qt-4.8/accessible.html<br />
http://blog.qt.digia.com/2011/08/23/accessibility-on-linux/<br />
<br />
http://lists.qt-project.org/pipermail/interest/2012-March/001197.html<br />
VLC's pop up menus don't generate speech, but the regular menus do, if you:<br />
- turn on the Orca screen reader.<br />
- export QT_ACCESSIBILITY=1<br />
- start vlc from the command line.<br />
<br />
Just as I was about to launch into the "Qt approach", Monkey Pet wrote Lee, to which he replied on the mythtv-users list, which prompted new discussion from others, especially Anthony Goggins, who tossed out the idea of doing something with how mythtv talks to LCDd, which is part of the lcdproc package. I took a look at it, and was able to get it working pretty easily using LCDd's curses simulation. So I took a look at the code for mythlcdserver and realized it wouldn't be that hard to modify that program to do the speaking. And that's what I've done. It's working for me and Lee (with some gotchas, more on that later) on Ubuntu/Mythbuntu 12.04. Monkey Pet has also gotten it working, although I don't know with what distro.<br />
<br />
I chose to use the speech-dispatcher approach, as opposed to what was done for NCAM, because I believe it's a cleaner approach and consistent with the direction Ubuntu is going in w.r.t accessibility.<br />
<br />
I don't think the work I've done should be the long term approach to adding accessibility to mythtv. There's a lot of info that isn't provided by mythfrontend to mythlcdserver, like program guide data and information about programs on live TV that mythfrontend shows if you just cursor up/down, but don't change the channel by pressing OK. Also, when I added the live TV support, I found it affected what happens when you watch a recording. It now tells you what you've just started to play, even though it just told you before you started playing it.<br />
<br />
I believe that, long term, accessibility for the blind/visually impaired should be based on Qt's support for accessibility. However, that will be more work and I wanted to get something working in 0.25, since that is what Lee and his wife are using. IMHO, what I'm doing is a short term hack, although I am trying to make it as functional as possible without having to touch anything other than mythlcdserver code.<br />
<br />
Lee and Monkey Pet have my first version. Since then I've added support for live TV and for mythmusic. Here's a link to the second version:<br />
http://www.hbuus.com/~buus/mythspeech-0.2.tgz<br />
<br />
<br />
Extract the file's contents with the command:<br />
tar xzf mythspeech-0.2.tgz<br />
<br />
This will create the directory, mythspeech-0.2, which will contain the following files:<br />
<br />
<br />
installspeech: A shell script that will install the non-source files in the desired locations.<br />
<br />
mythlcdserver: The 64 bit executable for *buntu 12.04 that does the speaking in response to messages from mythfrontend. It should be installed in $HOME/bin. I provide the executable for Lee's sake so he doesn't have to set up a development environment and compile mythtv from source.<br />
<br />
<br />
mythspeech: A shell script that starts up mythlcdserver and makes sure logging output is captured in the directory, $HOME/mythspeech. It also works around a potential race condition to make sure mythlcdserver doesn't start until mysql, the database server, is up and running.<br />
<br />
mythspeech-0.2.patch: This is a patch file that can be applied to the mythtv source. It only touches files in mythtv/programs/mythlcdserver.<br />
<br />
<br />
xprofile: Shell code that should be added to $HOME/.xprofile to make sure mythlcdserver is started when the computer is rebooted.<br />
<br />
To install:<br />
<br />
If running mythbuntu 12.04 (it's pre-installed on ubuntu 12.04):<br />
sudo apt-get install speech-dispatcher<br />
Test it with the command:<br />
spd-say "Hello world"<br />
<br />
If you want to compile the source:<br />
sudo apt-get install libspeechd-dev<br />
<br />
cd mythspeech-0.2<br />
<br />
./installspeech<br />
<br />
To start mythlcdserver, execute the command:<br />
$HOME/bin/mythspeech<br />
<br />
Once these steps are done, you need to configure mythfrontend to talk to mythlcdserver.<br />
<br />
- From the main menu, navigate to Setup -> Appearance.<br />
<br />
- On the last page labeled "LCD device display" check "Enable LCD device". This will make available a number of other settings specific to LCD display devices. You don't need to change them, they don't affect the speaking done by mythlcdserver.<br />
<br />
- Cursor down to "Finish". This will save the setting and throw you back to the main menu. If mythspeech successfully started mythlcdserver, and if speech-dispatcher is working properly, you should now hear "MYTH MAIN Menu Media Library". If not, it's time to check the log in $HOME/mythspeech.<br />
<br />
Lee ran into a problem last night after going into mythmusic. We're in the process of troubleshooting it. I suspect it may have to do with his audio configuration. Speech-dispatcher is using his onboard audio device (I think via pulseaudio), while mythfrontend is using alsa and nvidia'a hdmi audio device. If that's the case, I may not be able to help him configure a stable audio configuration. I've been testing on my laptop with the built in speakers and haven't had any problems using the default audio configuration provided by either ubuntu or mythbuntu (I've got both installed).<br />
<br />
I welcome any feedback, as well as thoughts on the mythlcdserver approach vs Qt accessibility vs NCAM vs something I haven't thought of. Also, if anyone can help with Lee's audio configuration, I'm sure he'd welcome it.<br />
<br />
Regards,<br />
Helen</div>Monkeypet