<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="http://feedproxy.google.com/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feedproxy.google.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Microcontroller Programming</title>
	
	<link>http://mcuprogramming.com</link>
	<description>A Microcontroller Weblog</description>
	<pubDate>Tue, 21 Oct 2008 14:52:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feedproxy.google.com/mcuprogramming" type="application/rss+xml" /><item>
		<title>First step of developing Sphinx applications</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/FVVwqVnQBEI/</link>
		<comments>http://mcuprogramming.com/2008/10/21/first-step-of-developing-sphinx-applications/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 14:52:44 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Artificial Intelligence]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Speech Recognition]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=240</guid>
		<description><![CDATA[I wrote about installing Sphinx3 last time. It can be possible to integrate speech recognition in your applications with Sphinx3 API. Before we can go to further step, we have to know how to compiling and link library to you programs. I testes that by copying files main_livedecode.c and main_livepretend.c in sphinx3/src/programs to my directory. [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote about <a href="http://mcuprogramming.com/2008/10/21/installing-sphinx3-on-linux/">installing Sphinx3</a> last time. It can be possible to integrate speech recognition in your applications with Sphinx3 API. Before we can go to further step, we have to know how to compiling and link library to you programs. I testes that by copying files main_livedecode.c and main_livepretend.c in sphinx3/src/programs to my directory. Then I write a simple make file to build it as follows</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">CXX = <span style="color: #c20cb9; font-weight: bold;">g++</span>
CXXFLAGS = <span style="color: #660033;">-g</span> <span style="color: #660033;">-O2</span> <span style="color: #660033;">-Wall</span> -I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>sphinx3 -I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>sphinxbase
LIBS = -L<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>lib <span style="color: #660033;">-ls3decoder</span> <span style="color: #660033;">-lsphinxad</span> <span style="color: #660033;">-lsphinxbase</span> <span style="color: #660033;">-lm</span>  
&nbsp;
all: main_livedecode.o main_livepretend.o
	$<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXX<span style="color: #7a0874; font-weight: bold;">&#41;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXXFLAGS<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-o</span> main_livedecode main_livedecode.o $<span style="color: #7a0874; font-weight: bold;">&#40;</span>LIBS<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	$<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXX<span style="color: #7a0874; font-weight: bold;">&#41;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXXFLAGS<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-o</span> main_livepretend main_livepretend.o $<span style="color: #7a0874; font-weight: bold;">&#40;</span>LIBS<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
main_livedecode.o: main_livedecode.c
	$<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXX<span style="color: #7a0874; font-weight: bold;">&#41;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXXFLAGS<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-c</span> $<span style="color: #000000; font-weight: bold;">&lt;</span>
&nbsp;
main_livepretend.o: main_livepretend.c
	$<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXX<span style="color: #7a0874; font-weight: bold;">&#41;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>CXXFLAGS<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-c</span> $<span style="color: #000000; font-weight: bold;">&lt;</span>
&nbsp;
clean:
	<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">*</span>.o
	<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">*</span>~
	<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">*</span>.raw
	<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> main_livedecode main_livepretend
&nbsp;
.PHONY: clean</pre></div></div>

<p>After this you can study how it work in files main_livedecode.c and main_livepretend.c.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/10/21/installing-sphinx3-on-linux/" title="Installing Sphinx3 on Linux">Installing Sphinx3 on Linux</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/sphinx-ii-speech-recognition-on-ubuntu-linux/" title="Sphinx II - Speech Recognition on Ubuntu Linux">Sphinx II - Speech Recognition on Ubuntu Linux</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/" title="Festival: Text to Speech on Linux">Festival: Text to Speech on Linux</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/yU3XmdqryLnhF0gjU1OE_EHohPM/a"><img src="http://feedads.googleadservices.com/~a/yU3XmdqryLnhF0gjU1OE_EHohPM/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/FVVwqVnQBEI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/10/21/first-step-of-developing-sphinx-applications/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/10/21/first-step-of-developing-sphinx-applications/</feedburner:origLink></item>
		<item>
		<title>Installing Sphinx3 on Linux</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/ZjH4EZBFfak/</link>
		<comments>http://mcuprogramming.com/2008/10/21/installing-sphinx3-on-linux/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 18:52:46 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Artificial Intelligence]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Speech Recognition]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=237</guid>
		<description><![CDATA[SPHINX is one of the best and most versatile recognition systems in the world today. I just installed Sphinx3 from tar ball source file as suggest in their page. I choose SPHINX-3 because it uses continuous HMMs. It can handle both live and batch decoding. Currently, it is the decoder most actively developed. I build [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cmusphinx.sourceforge.net/html/cmusphinx.php">SPHINX</a> is one of the best and most versatile recognition systems in the world today. I just installed Sphinx3 from tar ball source file as suggest in <a href="http://www.speech.cs.cmu.edu/sphinx/tutorial.html">their page</a>. I choose SPHINX-3 because it uses continuous HMMs. It can handle both live and batch decoding. Currently, it is the decoder most actively developed. I build it on Ubuntu 8.04. First of all, please download these two files <a href="http://cmusphinx.org/download/nightly/sphinx3.nightly.tar.gz">sphinx3.nightly.tar.gz</a> and <a href="http://cmusphinx.org/download/nightly/sphinxbase.nightly.tar.gz">sphinxbase.nightly.tar.gz</a>.</p>
<p>Compiling process are as follows</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">$tar</span> xzf sphinxbase.nightly.tar.gz
<span style="color: #007800;">$tar</span> xzf sphinx3.nightly.tar.gz
<span style="color: #007800;">$cd</span> sphinxbase
$.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #007800;">$make</span>
<span style="color: #007800;">$cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>sphinx3
<span style="color: #007800;">$configure</span> --<span style="color: #007800;">prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span> --with-<span style="color: #007800;">sphinxbase</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">pwd</span><span style="color: #000000; font-weight: bold;">`/</span>..<span style="color: #000000; font-weight: bold;">/</span>sphinxbase
<span style="color: #007800;">$make</span>
<span style="color: #007800;">$sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>If you want to compile the source code retrieved from SVN, please refer to <a href="http://sphinx.subwiki.com/sphinx/index.php/Main_Page">this page</a>.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/10/21/first-step-of-developing-sphinx-applications/" title="First step of developing Sphinx applications">First step of developing Sphinx applications</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/sphinx-ii-speech-recognition-on-ubuntu-linux/" title="Sphinx II - Speech Recognition on Ubuntu Linux">Sphinx II - Speech Recognition on Ubuntu Linux</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/" title="Festival: Text to Speech on Linux">Festival: Text to Speech on Linux</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/6t1vmKkW6bfZa3pCwhFuPS-Gq5Q/a"><img src="http://feedads.googleadservices.com/~a/6t1vmKkW6bfZa3pCwhFuPS-Gq5Q/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/ZjH4EZBFfak" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/10/21/installing-sphinx3-on-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/10/21/installing-sphinx3-on-linux/</feedburner:origLink></item>
		<item>
		<title>Compiling Festival applications</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/lqHVbSslfVA/</link>
		<comments>http://mcuprogramming.com/2008/10/19/compiling-festival-applications/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 10:54:04 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Artificial Intelligence]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Festival]]></category>

		<category><![CDATA[Text to  Speech]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=228</guid>
		<description><![CDATA[As suggested in its docs page, there are some details in compiling and linking Festival C/C++ applications. You need to install at least libesd0-dev, libncurses5-dev and festival-dev (on Ubuntu 8.04).  I test by copy the simple example from their page to my source test_festival.cpp which is

//file: test_festival.cpp
#include &#60;festival.h&#62;
&#160;
int main&#40;int argc, char **argv&#41;
&#123;
   [...]]]></description>
			<content:encoded><![CDATA[<p>As suggested in its <a href="http://www.speech.cs.cmu.edu/festival/manual-1.4.1/festival_28.html#SEC133">docs page</a>, there are some details in compiling and linking Festival C/C++ applications. You need to install at least libesd0-dev, libncurses5-dev and festival-dev (on Ubuntu 8.04).  I test by copy the simple example from their page to my source test_festival.cpp which is</p>

<div class="wp_syntax"><div class="code"><pre class="cpp cpp" style="font-family:monospace;"><span style="color: #666666;">//file: test_festival.cpp</span>
<span style="color: #339900;">#include &lt;festival.h&gt;</span>
&nbsp;
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span> <span style="color: #000040;">**</span>argv<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    EST_Wave wave;
    <span style="color: #0000ff;">int</span> heap_size <span style="color: #000080;">=</span> <span style="color: #0000dd;">210000</span>;  <span style="color: #666666;">// default scheme heap size</span>
    <span style="color: #0000ff;">int</span> load_init_files <span style="color: #000080;">=</span> <span style="color: #0000dd;">1</span>; <span style="color: #666666;">// we want the festival init files loaded</span>
&nbsp;
    festival_initialize<span style="color: #008000;">&#40;</span>load_init_files,heap_size<span style="color: #008000;">&#41;</span>;
&nbsp;
    <span style="color: #666666;">// Say simple file</span>
    festival_say_file<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;/etc/motd&quot;</span><span style="color: #008000;">&#41;</span>;
&nbsp;
    festival_eval_command<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;(voice_ked_diphone)&quot;</span><span style="color: #008000;">&#41;</span>;
    <span style="color: #666666;">// Say some text;</span>
    festival_say_text<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;hello world&quot;</span><span style="color: #008000;">&#41;</span>;
&nbsp;
    <span style="color: #666666;">// Convert to a waveform</span>
    festival_text_to_wave<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;hello world&quot;</span>,wave<span style="color: #008000;">&#41;</span>;
    wave.<span style="color: #007788;">save</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;/tmp/wave.wav&quot;</span>,<span style="color: #FF0000;">&quot;riff&quot;</span><span style="color: #008000;">&#41;</span>;
&nbsp;
    <span style="color: #666666;">// festival_say_file puts the system in async mode so we better</span>
    <span style="color: #666666;">// wait for the spooler to reach the last waveform before exiting</span>
    <span style="color: #666666;">// This isn't necessary if only festival_say_text is being used (and</span>
    <span style="color: #666666;">// your own wave playing stuff)</span>
    festival_wait_for_spooler<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>;
&nbsp;
    <span style="color: #0000ff;">return</span> <span style="color:#800080;">0</span>;
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>To compile and build it, I do the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">$g</span>++ <span style="color: #660033;">-c</span> test_festival.cpp \\
<span style="color: #660033;">-I</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>estools <span style="color: #660033;">-I</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>festival<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #007800;">$g</span>++ <span style="color: #660033;">-o</span> test_festival test_festival.o \\
<span style="color: #660033;">-lFestival</span> <span style="color: #660033;">-lestools</span> <span style="color: #660033;">-lestbase</span> <span style="color: #660033;">-leststring</span> <span style="color: #660033;">-lesd</span> <span style="color: #660033;">-lncurses</span></pre></div></div>

<p>Finally, type ./test_festival to run it. Cool! isn&#8217;t it?<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/10/13/flite-a-small-text-to-speech-for-embedded-systems/" title="Flite - a small text to speech for embedded systems">Flite - a small text to speech for embedded systems</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/" title="Festival: Text to Speech on Linux">Festival: Text to Speech on Linux</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/lQLCb_Oheu0KPutokjUcH15M-U4/a"><img src="http://feedads.googleadservices.com/~a/lQLCb_Oheu0KPutokjUcH15M-U4/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/lqHVbSslfVA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/10/19/compiling-festival-applications/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/10/19/compiling-festival-applications/</feedburner:origLink></item>
		<item>
		<title>Learning AIML through QAIML</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/6mE3H1ExfZ8/</link>
		<comments>http://mcuprogramming.com/2008/10/19/learning-aiml-through-qaiml/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 08:57:35 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Artificial Intelligence]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[AIML]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=223</guid>
		<description><![CDATA[Another way to learn AIML is learning by using it. There is a free service called Pandorabots which allows you to create your own AIML bot and train it. However, you have to work online. If we want to use it offline, we have a great deal of open source implementations of AIML.  Among [...]]]></description>
			<content:encoded><![CDATA[<p>Another way to learn <a href="http://en.wikipedia.org/wiki/AIML">AIML</a> is learning by using it. There is a free service called <a href="http://www.pandorabots.com/botmaster/en/home">Pandorabots</a> which allows you to create your own AIML bot and train it. However, you have to work online. If we want to use it offline, we have a great deal of open source implementations of AIML.  Among of them, <a href="http://sourceforge.net/projects/qaiml">QAIML (ProgramQ)</a> is a good candidate for me because it is written by C++ with <a href="http://en.wikipedia.org/wiki/Qt_toolkit">Qt - cross-platform GUI</a> framework.  I have succeeded installing it on Ubuntu 8.04 (Hardy).</p>
<p>To install:</p>
<ul>
<li>Firstly, you have to install Qt development.</li>
<li>Download QAIML source <a href="http://sourceforge.net/project/showfiles.php?group_id=149879">from here</a>. Then do the following commands:

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">$tar</span> xjf ProgramQv1_1.tar.bz2
<span style="color: #007800;">$cd</span> ProgramQ
<span style="color: #007800;">$qmake</span> <span style="color: #660033;">-o</span> Makefile ProgramQ.pro
<span style="color: #007800;">$make</span></pre></div></div>

</li>
<li>Now you will get ProgramQ executable file. To run it just simply type:

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$.<span style="color: #000000; font-weight: bold;">/</span>ProgramQ</pre></div></div>

</li>
</ul>
<p>It is a small program but cool!<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/09/25/lets-learn-aiml/" title="Let&#8217;s Learn AIML">Let&#8217;s Learn AIML</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/rVr3x5ZEXIz4hrWzyk7aS5ZEBU4/a"><img src="http://feedads.googleadservices.com/~a/rVr3x5ZEXIz4hrWzyk7aS5ZEBU4/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/6mE3H1ExfZ8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/10/19/learning-aiml-through-qaiml/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/10/19/learning-aiml-through-qaiml/</feedburner:origLink></item>
		<item>
		<title>Flite - a small text to speech for embedded systems</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/Gmae7noZL8o/</link>
		<comments>http://mcuprogramming.com/2008/10/13/flite-a-small-text-to-speech-for-embedded-systems/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 13:52:50 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Robotics and AI]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Text to  Speech]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=200</guid>
		<description><![CDATA[Last time I wrote about Festival: Text to Speech on Linux. Now I found a derived version of them, it called Flite. Flite (festival-lite) is a small, fast run-time synthesis engine developed at CMU and primarily designed for small embedded machines and/or large servers. Flite is designed as an alternative synthesis engine to Festival for [...]]]></description>
			<content:encoded><![CDATA[<p>Last time I wrote about <a href="http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/">Festival: Text to Speech on Linux</a>. Now I found a derived version of them, it called <a href="http://www.speech.cs.cmu.edu/flite/">Flite</a>. Flite (festival-lite) is a small, fast run-time synthesis engine developed at CMU and primarily designed for small embedded machines and/or large servers. Flite is designed as an alternative synthesis engine to Festival for voices built using the FestVox suite of voice building tools. To enable it on Ubuntu (8.04), you just type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> flite</pre></div></div>

<p>and then everything will be ready for you. To test it just type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">flite <span style="color: #660033;">-t</span> <span style="color: #ff0000;">&quot;Hello world&quot;</span></pre></div></div>

<p>and this will speak the sentence in quotation. If you want to generate the sound from file, use this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">flite <span style="color: #660033;">-f</span> filename.txt</pre></div></div>

<p>It&#8217;s a nice text to speech engine. I think I will try to port to an embedded device for the future project.</p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/10/19/compiling-festival-applications/" title="Compiling Festival applications">Compiling Festival applications</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/" title="Festival: Text to Speech on Linux">Festival: Text to Speech on Linux</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/H7m4JghlxS9t1bUnVva3qZEDFMw/a"><img src="http://feedads.googleadservices.com/~a/H7m4JghlxS9t1bUnVva3qZEDFMw/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/Gmae7noZL8o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/10/13/flite-a-small-text-to-speech-for-embedded-systems/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/10/13/flite-a-small-text-to-speech-for-embedded-systems/</feedburner:origLink></item>
		<item>
		<title>Build Your Own ARM Cross Compiler Toolchain - Revision</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/VOb8W_pRwps/</link>
		<comments>http://mcuprogramming.com/2008/09/30/build-your-own-arm-cross-compiler-toolchain-revision/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 17:32:53 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Microcontrollers]]></category>

		<category><![CDATA[ARM]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/2008/09/30/build-your-own-arm-cross-compiler-toolchain-revision/</guid>
		<description><![CDATA[Refer to my article which I failed to compile the GNU ARM toolchain on Ubuntu. Now the problem was resolved by one of our member in the forums (please see the full post here). He created an automatic script called GNU ARM Installer (download gnu-arm-installer.tar.gz here).  You can build the cross compiler for ARM [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mcuprogramming.com/2007/04/22/build-your-own-arm-cross-compiler-toolchain-2/">Refer to my article</a> which I failed to compile the GNU ARM toolchain on Ubuntu. Now the problem was resolved by one of our member in the forums <a href="http://forum.mcuprogramming.com/arm/gnu-arm-toolchain-installer/0/">(please see the full post here</a>). He created an automatic script called GNU ARM Installer (download <a href="http://forum.mcuprogramming.com/arm/gnu-arm-toolchain-installer/0/?action=dlattach;attach=9">gnu-arm-installer.tar.gz</a> here).  You can build the cross compiler for ARM with simple steps:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xzf gnu-arm-installer.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> gnu-arm-installer
.<span style="color: #000000; font-weight: bold;">/</span>gnu-arm-installer.sh</pre></div></div>

<p>If it is done you will get the toolchain in gnu-arm-installer/install. It is simple but power script.</p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2007/04/22/build-your-own-arm-cross-compiler-toolchain-2/" title="Build Your Own ARM Cross Compiler Toolchain">Build Your Own ARM Cross Compiler Toolchain</a></li>
<li><a href="http://mcuprogramming.com/2007/04/13/if-dev-free-tools-for-arm79xscale-2/" title="iF-DEV Free Tools for ARM7/9/XScale">iF-DEV Free Tools for ARM7/9/XScale</a></li>
<li><a href="http://mcuprogramming.com/2007/04/08/learn-embedded-linux-with-armulator-2/" title="Learn Embedded Linux with ARMulator">Learn Embedded Linux with ARMulator</a></li>
<li><a href="http://mcuprogramming.com/2007/03/29/a-guide-to-arm-microcontroller-2/" title="A Guide to ARM Microcontroller">A Guide to ARM Microcontroller</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/sj3rOxu3qJl7Pt9IwJs8I2gJqSA/a"><img src="http://feedads.googleadservices.com/~a/sj3rOxu3qJl7Pt9IwJs8I2gJqSA/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/VOb8W_pRwps" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/09/30/build-your-own-arm-cross-compiler-toolchain-revision/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/09/30/build-your-own-arm-cross-compiler-toolchain-revision/</feedburner:origLink></item>
		<item>
		<title>Sphinx II - Speech Recognition on Ubuntu Linux</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/_guz2PX1sZA/</link>
		<comments>http://mcuprogramming.com/2008/09/25/sphinx-ii-speech-recognition-on-ubuntu-linux/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 10:00:42 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Robotics and AI]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Speech Recognition]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=190</guid>
		<description><![CDATA[I just set up CMU Sphinx II on Ubuntu. I just want to test how this Linux Speech Recognition work. I installed the following packages: libsphinx2g0, libsphinx2-dev, sphinx2-bin and sphinx2-hmm-6k. The resource file will be in  /usr/share/sphinx2/model/ which contains hmm (Hidden Markov model based-file) and model (Language Model related files). I just type

sphinx2-demo

 to [...]]]></description>
			<content:encoded><![CDATA[<p>I just set up <a href="http://cmusphinx.sourceforge.net/html/cmusphinx.php">CMU Sphinx II</a> on Ubuntu. I just want to test how this Linux Speech Recognition work. I installed the following packages: libsphinx2g0, libsphinx2-dev, sphinx2-bin and sphinx2-hmm-6k. The resource file will be in  /usr/share/sphinx2/model/ which contains hmm (Hidden Markov model based-file) and model (Language Model related files). I just type</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">sphinx2-demo</pre></div></div>

<p> to test it. It works but not perfectly accuracy output. I think it is needed to be trained. However, It&#8217;s a nice Speech Recognition system for Linux.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/10/21/first-step-of-developing-sphinx-applications/" title="First step of developing Sphinx applications">First step of developing Sphinx applications</a></li>
<li><a href="http://mcuprogramming.com/2008/10/21/installing-sphinx3-on-linux/" title="Installing Sphinx3 on Linux">Installing Sphinx3 on Linux</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/" title="Festival: Text to Speech on Linux">Festival: Text to Speech on Linux</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/uia3WvB4vC9WswbVFL96dSZ__Rs/a"><img src="http://feedads.googleadservices.com/~a/uia3WvB4vC9WswbVFL96dSZ__Rs/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/_guz2PX1sZA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/09/25/sphinx-ii-speech-recognition-on-ubuntu-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/09/25/sphinx-ii-speech-recognition-on-ubuntu-linux/</feedburner:origLink></item>
		<item>
		<title>Festival: Text to Speech on Linux</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/r6xKYQwmFzQ/</link>
		<comments>http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 09:54:06 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Robotics and AI]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Speech Recognition]]></category>

		<category><![CDATA[Text to  Speech]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=187</guid>
		<description><![CDATA[If you are MS$ fan, you are lucky obtained the MS native Text to  Speech and Speech Recognition system. Fortunately, for a Unix-like user, Festival provides such a system. I am using the Ubuntu Linux. To enable Speech to Text, I installed these packages: festival and festvox-kallpc16k. Then, I tested by putting these command:

echo [...]]]></description>
			<content:encoded><![CDATA[<p>If you are MS$ fan, you are lucky obtained the MS native Text to  Speech and Speech Recognition system. Fortunately, for a Unix-like user, <a href="http://en.wikipedia.org/wiki/Festival_Speech_Synthesis_System">Festival</a> provides such a system. I am using the Ubuntu Linux. To enable Speech to Text, I installed these packages: festival and festvox-kallpc16k. Then, I tested by putting these command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;It's such a beautiful day! Why are you in front of the computer?&quot;</span> \\
 | festival <span style="color: #660033;">--tts</span></pre></div></div>

<p>Wow! It is such a cool noise. For more tutorial on Festival, please refer to this page:</p>
<p><a href="http://www.xenocafe.com/tutorials/php/festival_text_to_speech/index.php">http://www.xenocafe.com/tutorials/php/festival_text_to_speech/index.php</a><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/10/21/first-step-of-developing-sphinx-applications/" title="First step of developing Sphinx applications">First step of developing Sphinx applications</a></li>
<li><a href="http://mcuprogramming.com/2008/10/21/installing-sphinx3-on-linux/" title="Installing Sphinx3 on Linux">Installing Sphinx3 on Linux</a></li>
<li><a href="http://mcuprogramming.com/2008/10/19/compiling-festival-applications/" title="Compiling Festival applications">Compiling Festival applications</a></li>
<li><a href="http://mcuprogramming.com/2008/10/13/flite-a-small-text-to-speech-for-embedded-systems/" title="Flite - a small text to speech for embedded systems">Flite - a small text to speech for embedded systems</a></li>
<li><a href="http://mcuprogramming.com/2008/09/25/sphinx-ii-speech-recognition-on-ubuntu-linux/" title="Sphinx II - Speech Recognition on Ubuntu Linux">Sphinx II - Speech Recognition on Ubuntu Linux</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/W2V2f_8XQ1rI01g-jvmpNDG0ra4/a"><img src="http://feedads.googleadservices.com/~a/W2V2f_8XQ1rI01g-jvmpNDG0ra4/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/r6xKYQwmFzQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/</feedburner:origLink></item>
		<item>
		<title>Avimator fixed for Ubuntu</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/RdH8a65IFrI/</link>
		<comments>http://mcuprogramming.com/2008/09/25/avimator-fixed-for-ubuntu/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 09:51:41 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=185</guid>
		<description><![CDATA[Avimator is open-source animation avatar editor for Second Life. This is very interesting because it may can be integrated with AI tool. However, it fails compiling in Ubuntu due to the name file case sensitive (.h or .H) of FLTK. After I fixed this problem, it work fine. You can download my fixed version for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.avimator.com/">Avimator</a> is open-source animation avatar editor for <a href="http://secondlife.com/">Second Life</a>. This is very interesting because it may can be integrated with AI tool. However, it fails compiling in Ubuntu due to the name file case sensitive (.h or .H) of <a href="http://www.fltk.org/index.php">FLTK</a>. After I fixed this problem, it work fine. You can download my <a href="http://mcuprogramming.com/blog/wp-content/uploads/avimator-0.4.1-ubuntu.tar.gz">fixed version for Ubuntu here</a>.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/09/25/festival-text-to-speech-on-linux/" title="Festival: Text to Speech on Linux">Festival: Text to Speech on Linux</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/e21VFlb7_bZiSlYDcDKcqwTOhnM/a"><img src="http://feedads.googleadservices.com/~a/e21VFlb7_bZiSlYDcDKcqwTOhnM/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/RdH8a65IFrI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/09/25/avimator-fixed-for-ubuntu/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/09/25/avimator-fixed-for-ubuntu/</feedburner:origLink></item>
		<item>
		<title>X3D with H3D API</title>
		<link>http://feedproxy.google.com/~r/mcuprogramming/~3/41o5V-6M5f4/</link>
		<comments>http://mcuprogramming.com/2008/09/25/x3d-with-h3d-api/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 09:50:51 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mcuprogramming.com/?p=183</guid>
		<description><![CDATA[Starting learning X3D with H3D API is a nice stage in my opinion.
H3D API is an open-source, cross-platform, scene-graph API . H3D is written entirely in C++ and uses OpenGL for graphics rendering and HAPI for haptics rendering. HAPI is an open-source haptic API developed by the team behind H3D API. For more information about [...]]]></description>
			<content:encoded><![CDATA[<p>Starting learning <a href="http://www.web3d.org/x3d/">X3D</a> with <a href="http://www.h3dapi.org/">H3D API</a> is a nice stage in my opinion.</p>
<p>H3D API is an open-source, cross-platform, scene-graph API . H3D is written entirely in C++ and uses OpenGL for graphics rendering and HAPI for haptics rendering. HAPI is an open-source haptic API developed by the team behind H3D API. For more information about HAPI see the HAPI manual. H3D API is available under the terms and conditions of the GNU General Public License (GPL).</p>
<p>To install HAPI on Windows follow these steps:</p>
<ol>
<li>Download Windows installation file from <a href="http://www.h3dapi.org/modules/PDdownloads/viewcat.php?cid=14">www.h3d.org</a>.
</li>
<li>Install HAPI using this file.</li>
<li>Run examples through start menu.
</li>
</ol>
<p>For information on how to build HAPI on Windows see the <a href="http://www.h3dapi.org/uploads/api/H3DAPI_20_beta/H3D%20API%20Manual.pdf">pdf-manual</a>.<br />
<h3>Other Topics</h3>
<ul class="related_post">
<li><a href="http://mcuprogramming.com/2008/09/25/how-to-use-pirut-addremove-program-on-fedora-core-5-work-offline/" title="How to use Pirut add/remove program on Fedora Linux work offline">How to use Pirut add/remove program on Fedora Linux work offline</a></li>
<li><a href="http://mcuprogramming.com/2006/09/15/servo-motor-control/" title="Servo Motor Control">Servo Motor Control</a></li>
<li><a href="http://mcuprogramming.com/2007/03/28/understanding-processor-architecture-machine-and-assembly-language/" title="Understanding Processor Architecture: Machine and Assembly Language">Understanding Processor Architecture: Machine and Assembly Language</a></li>
<li><a href="http://mcuprogramming.com/2006/11/25/a-real-time-operating-system-rtos-for-the-8051/" title="A Real-Time Operating System (RTOS) for the 8051">A Real-Time Operating System (RTOS) for the 8051</a></li>
<li><a href="http://mcuprogramming.com/2007/01/18/what-is-grid/" title="What is Grid ?">What is Grid ?</a></li>
</ul>

<p><a href="http://feedads.googleadservices.com/~a/xUNGU90C4zCXfffFU4ruMPopUjo/a"><img src="http://feedads.googleadservices.com/~a/xUNGU90C4zCXfffFU4ruMPopUjo/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/mcuprogramming/~4/41o5V-6M5f4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://mcuprogramming.com/2008/09/25/x3d-with-h3d-api/feed/</wfw:commentRss>
		<feedburner:origLink>http://mcuprogramming.com/2008/09/25/x3d-with-h3d-api/</feedburner:origLink></item>
	</channel>
</rss>
