<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eurion · RainCT&#039;s Blog &#187; speech-recognition</title>
	<atom:link href="http://bloc.eurion.net/archives/tag/speech-recognition/feed/" rel="self" type="application/rss+xml" />
	<link>http://bloc.eurion.net</link>
	<description>I would love to change the world, but they won&#039;t give me the source code...</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:23:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Updated Voxforge packages in Ubuntu</title>
		<link>http://bloc.eurion.net/archives/2009/updated-voxforge-packages-in-ubuntu/</link>
		<comments>http://bloc.eurion.net/archives/2009/updated-voxforge-packages-in-ubuntu/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 17:06:25 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[speech-recognition]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=310</guid>
		<description><![CDATA[Just a quick note today to mention that I&#8217;ve updated the julius-voxforge package in Ubuntu Karmic from the two-years old 0.1.1~build726 to a recent daily snapshot. This new one has been generated using much more recorded speech (but on the other hand there are also some errors in the transcriptions which haven&#8217;t been fixed yet [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note today to mention that I&#8217;ve updated the <a href="http://packages.ubuntu.com/karmic/julius-voxforge">julius-voxforge</a> package in Ubuntu Karmic from the two-years old 0.1.1~build726 to a recent daily snapshot. This new one has been generated using much more recorded speech (but on the other hand there are also some errors in the transcriptions which haven&#8217;t been fixed yet so it&#8217;s not as good as it could be; I&#8217;ll push some more snapshots from time to time and if it comes soon enough I&#8217;ll try to get in the next <em>stable</em> version which<a href="http://voxforge.org/home/forums/message-boards/acoustic-model-discussions/stable-release-or-daily-build"> is expected in some months</a>), but especially interesting is that it supports more phonemes now (remember the <a href="http://bloc.eurion.net/archives/2008/writing-a-command-and-control-application-with-voice-recognition/">old days</a> when words like &#8220;previous&#8221; or &#8220;computer&#8221; couldn&#8217;t be used?).</p>
<p>Anyway, I haven&#8217;t played much with it yet so if you try it out make sure to leave a comment, any feedback is welcome. The <a href="http://packages.ubuntu.com/karmic/julius-voxforge">package</a> can be installed safely on Jaunty and my last <a href="http://bloc.eurion.net/archives/2008/writing-a-command-and-control-application-with-voice-recognition/">blog post on speech recognition</a> has some explanation on how to use it. By the way, if you&#8217;re really interested in this, after the <a href="https://blueprints.launchpad.net/ubuntu/+spec/ubuntu-mobile-voice-user-interface">discussion</a> at <a href="http://bloc.eurion.net/archives/2009/uds-2009/">UDS</a> a <a href="https://launchpad.net/~voice-driven-ui">team</a> (with an associated mailing list) was created to work in this area, so feel free to come by there.</p>
<p>Well, that&#8217;s it for now. Thanks for reading, and, <span style="text-decoration: line-through;">if you&#8217;re a native English speaker,</span> please consider <a href="http://voxforge.org/home/read">donating some speech</a>, it only takes a few minutes! Or you may also help <a href="https://translations.launchpad.net/voxforge/voxforge-speech-submission-applet/">translating the website</a> into your language.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/test-build-debian-packages/' rel='bookmark' title='Packaging: Test-building your packages'>Packaging: Test-building your packages</a> <small>Short version: how to test-build Debian/Ubuntu packages in a chroot...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/getting-your-scanner-to-work-with-ubuntu-gt68xx/' rel='bookmark' title='Getting your scanner to work with Ubuntu (gt68xx)'>Getting your scanner to work with Ubuntu (gt68xx)</a> <small>You try to use your scanner with XSane but it...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/reducing-sshs-connection-time-on-ubuntu/' rel='bookmark' title='Reducing SSH&#8217;s connection time on Ubuntu'>Reducing SSH&#8217;s connection time on Ubuntu</a> <small>If you use SSH on your local network you may...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/updated-voxforge-packages-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Writing a command and control application with voice recognition</title>
		<link>http://bloc.eurion.net/archives/2008/writing-a-command-and-control-application-with-voice-recognition/</link>
		<comments>http://bloc.eurion.net/archives/2008/writing-a-command-and-control-application-with-voice-recognition/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 21:17:57 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[speech-recognition]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/archives/2008/writing-a-command-and-control-application-with-voice-recognition/</guid>
		<description><![CDATA[Have you ever dreamed about controlling your PC with voice commands? Well, now you can (though only some specific actions)! What do I need? - A computer with Ubuntu (you can still do the same on other distributions, but this post won&#8217;t cover that). - A microphone (a cheap one will do). - Some application(s) [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever dreamed about controlling your PC with voice commands? Well, now you can (though only some specific actions)!</p>
<p><strong>What do I need?</strong><br />
- A computer with Ubuntu (you can still do the same on other distributions, but this post won&#8217;t cover that).<br />
- A microphone (a cheap one will do).<br />
- Some application(s) which you want to control and which can be used with commands on the terminal.</p>
<p><strong>Installation</strong><br />
Go over to my <a href="https://launchpad.net/~rainct/+archive">PPA</a> and install packages <em>julius</em> and <em>julius-voxforge</em> from there.</p>
<p><strong>Writing the command and control application</strong><br />
Follow the instructions from <em>/usr/share/doc/julius-voxforge/examples/README</em> to create your own grammar, and then edit the <em>command.py</em> file to suit your needs (the simplest configuration would be to just edit the dictionary near line 60). Finally, to execute it: <em>julius -quiet -input mic -C julian.jconf 2&gt;/dev/null | ./command.py</em></p>
<p><strong>Problems</strong><br />
I don&#8217;t really have much experience with Julius, but if you have problems with the instructions explained here leave a comment or ping me on IRC (RainCT@Freenode) and I&#8217;ll try to help you. But first look at the examples below to ensure that you&#8217;ve done everything right :).</p>
<p><strong>More?</strong><br />
I&#8217;m currently working at further improving those packages and getting them into Ubuntu. Also, I may write another post in the future explaining how to create your own speech corpora and acoustic models, but I can&#8217;t promise anything.</p>
<p><strong>Example on how to control Rhythmbox:</strong></p>
<p><strong>* example.voca:</strong></p>
<pre>% NS_B
&lt;s&gt;	sil

% NS_E
&lt;/s&gt;	sil

% ID
DO	d uw
COMP	k ax m p

% COMMAND
PLAY	p l ey
NEXT	n eh k s t
PREV	p r iy v
SHOW	sh ow
UP	ah p
DOWN	d aw n
SILENCE	s ay l ax n s</pre>
<p><strong>* sample.grammar</strong></p>
<pre>S: NS_B ID COMMAND NS_E</pre>
<p><strong>* command.py&#8217;s parse function</strong></p>
<pre>def parse(line):
    params = [param.lower() for param in line.split() if param]
    commands = {
        'play': 'rhythmbox-client --play',
        'silence': 'rhythmbox-client --pause',
        'next': 'rhythmbox-client --next',
        'prev': 'rhythmbox-client --previous',
        'show': 'rhythmbox-client --notify',
        'up': 'rhythmbox-client --volume-up',
        'down': 'rhythmbox-client --volume-down',
    }
    if params[1] in commands:
        os.popen(commands[params[1]])</pre>
<p><strong>* Usage: (Action &#8211; Verbal command)</strong></p>
<pre>Reproduce - DO PLAY
Pause - DO SILENCE (I didn't use "DO PAUSE" because like that it had a very high error rate)
Next song - DO NEXT
Previous song - DO PREV ("DO PREVIOUS" can't be used because VoxForge's acoustic models don't support some of it's phonemes)
Show the name of the current song - DO SHOW
Increment Rhythmbox's volume - DO UP
Decrement Rhythmbox's volume - DO DOWN</pre>
<p><strong>Random tip:</strong><br />
You can let the computer answer to your commands using either <em>espeak &#8220;text to say&#8221;</em> or, if you have Festival (which sounds more natural) installed, <em>festival -b &#8216;(SayText &#8220;text to say&#8221;)&#8217;</em>.</p>
<p>Happy hacking!</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/eject-cd-locked-by-a-wine-application/' rel='bookmark' title='Eject CD locked by a Wine application'>Eject CD locked by a Wine application</a> <small>[English] And here is another quick tip related to CD...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/updated-voxforge-packages-in-ubuntu/' rel='bookmark' title='Updated Voxforge packages in Ubuntu'>Updated Voxforge packages in Ubuntu</a> <small>Just a quick note today to mention that I&#8217;ve updated...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2008/writing-a-command-and-control-application-with-voice-recognition/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

