<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; ">
<span class="Apple-style-span" style="border-collapse: separate; font-size: small;"><font class="Apple-style-span" face="&#39;Times New Roman&#39;, serif"><span class="Apple-style-span" style="border-collapse: collapse;"></span></font></span></p>
<font class="Apple-style-span" face="&#39;Times New Roman&#39;, serif"><p class="MsoNormal" style="text-align:justify"><span class="Apple-style-span" style="font-size: large; ">Hi everyone,</span></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Sugar
is becoming a useful educational tool with more and more features being
introduced. Like Speech Synthesis which is the base of many sugar activities, I
would like to integrate Speech Recognition into core sugar. I am presenting my
features and implementation ideas and would like to know the feedback of sugar
community.</span></span></p>

<p class="MsoNormal" style="text-align:justify"><b><span style="line-height: 115%; font-family: &#39;Times New Roman&#39;, serif; "><span class="Apple-style-span" style="font-size: large;">Intended audience</span></span></b></p>


<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">With
speech recognition system, we will be fulfilling the needs of two types of
audience; one is the end users who are not technical and others are activity
developers.</span></span></p>

<p class="MsoNormal" style="text-align:justify"><b><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">End users (Non
technical)</span></span></b></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">For
end users Speech recognition can act as a medium for controlling the sugar. Now
imagine a child who is physically challenged and thus is not able to interact
with systems can now open the activities (like write activity) by just saying “Open
write activity”. Then he/she can simply interact with the activity with speech
recognition running in the background by just saying simple commands. For
example, he/she can start typing by saying “Start typing” and then speaking the
words that they want to write into the document. Thus sugar will become
accessible for physically challenged users which will be a boon to them.</span></span></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Activities
can be developed around speech recognition that can help children to improve
their pronunciation by incorporating oral testing. Oral testing is a method to
provide feedback to the users on their pronunciation by recognizing their
speech. Thus a child speaking a word “Apple” correctly should be recognized
otherwise not. This is only one example and we can create numerous activities
around speech recognition. This will make possible to develop more interactive
activities for children that can help make sugar a useful educational tool.</span></span></p>

<p class="MsoNormal" style="text-align:justify"><b><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Activity Developers
(Technical)</span></span></b></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;"> Activity developers would be primarily interested
in the API’s provided for speech recognition. We will provide simple and easy
to use interfaces for the developers that will have all the control over speech
recognition. The developers of already existing activities can also integrate
speech recognition to make them more useful. Consider for example the write
activity, we can modify it to take the inputs for typing from Speech
recognition system instead of the keyboard.</span></span></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;"> </span></span><b><span style="line-height: 115%; font-family: &#39;Times New Roman&#39;, serif; "><span class="Apple-style-span" style="font-size: large;">Implementation details</span></span></b></p>


<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">For
a speech recognition system, we require a Speech recognition engine that can be
integrated into sugar over which we can develop the entire framework. The major
requirements of such an engine are:</span></span></p>

<p class="MsoListParagraphCxSpFirst" style="text-align:justify;text-indent:-.25in;
mso-list:l0 level1 lfo1"></p><ul><li><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">1.</span><span style="font:7.0pt &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">      </span></span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">It should be capable of running
on Linux which is the core of sugar.</span></span></li><li><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">2.</span><span style="font:7.0pt &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">      </span></span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">It should be open source so that
we can modify it accordingly as per our needs and requirements.</span></span></li><li><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">3.</span><span style="font:7.0pt &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">      </span></span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">It should not consume a lot of
memory during run time.</span></span></li><li><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">4.</span><span style="font:7.0pt &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">      </span></span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">It should be an efficient speech
recognizer.</span></span></li></ul><p></p>







<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">One
such Speech recognition engine that nearly fulfills all of these requirements
is Sphinx. Sphinx is an open source speech recognition engine, developed at CMU
is one of the top class speech recognizer. It has been developed primarily for
Linux and comes under different versions. </span><a href="http://www.speech.cs.cmu.edu/"><span class="Apple-style-span" style="font-size: large;">http://www.speech.cs.cmu.edu/</span></a><span class="Apple-style-span" style="font-size: large;"></span></span></p>


<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">The
currently available versions are:</span></span></p>

<p class="MsoListParagraphCxSpFirst" style="text-align:justify;text-indent:-.25in;
mso-list:l1 level1 lfo2"></p><ul><li><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">1.</span><span style="font:7.0pt &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">      </span></span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Sphinx 3</span></span></li>
<li><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">2.</span><span style="font:7.0pt &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">      </span></span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Pocket Sphinx</span></span></li>
<li><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">3.</span><span style="font:7.0pt &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-size: large;">      </span></span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Sphinx 4</span></span></li>
</ul><p></p>





<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Sphinx
4 is the latest version which has been developed entirely in JAVA. Sphinx 3 and
pocket sphinx are older versions but still are the famous ones. Using Sphinx 4
for integration in sugar does not seem feasible because it has been written in
JAVA. So we are left with two options of either using Sphinx 3 or Pocket
Sphinx. Now the decision between these two can only be made by experimenting
them with sugar. This will also depend on the devices currently being aimed by
sugar and thus the main focus will be on OLPC XO laptops. The XOs have 256 MB
of RAM and the run time requirement of Pocket Sphinx is around 20 MB. At this
time I am not sure about the requirements of Sphinx 3 but this should be more
than 30 MB. Pocket Sphinx is light weight and is designed primarily for
embedded devices like PDA. Sphinx 3 on the other hand is developed to run on
desktops and consumes considerable amount of memory. So at least Pocket Sphinx can
be implemented in sugar and the feasibility of Sphinx 3 will be tested soon.  </span></span></p>

<p class="MsoNormal" style="text-align:justify"><b><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Language Support</span></span></b></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Sphinx
engines require training data sets and language models for recognizing speech.
Thus we can set them to recognize many languages. At present they have been
tested for recognizing Chinese, Spanish, Dutch, German, Hindi, Italic, Icelandic
and Russian successfully. Thus we can target a wide range of users belonging to
different parts of world speaking different languages. I have collected all
this data after discussion with a Sphinx developer on IRC and I am testing the
Sphinx 3 and Pocket sphinx too. </span></span></p>

<p class="MsoNormal" style="text-align:justify"><b><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">GUI considerations</span></span></b></p>


<p class="template" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
font-style:normal"><span class="Apple-style-span" style="font-size: large;">We can provide a Speech recognition button in the sugar
frame (for example on Top Right hand side) which when clicked will
automatically start recognizing speech in the background. Clicking the same
button again will stop the recognition process. On hovering over the Speech
recognition button, a sugar palette will be exposed which will display the
speech recognition parameters that can be modified by the user. Sugar Controls
like Sliders, Palette Buttons, and Combo boxes will be used within the palette
to achieve the desired effect. </span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">  </span></span></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">A
keyboard shortcut like &lt;Alt+S&gt; can also be provided for starting speech
recognition. </span></span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;">The
corresponding hooks for the key shortcut must be made in the Sugar UI source
code.</span></span></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;">I am
leaving out more details that I will put up on the sugar wiki after getting the
feedback from community.</span></span></p>

<p class="MsoNormal" style="text-align:justify"><b><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-bidi-font-family:
&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;">My little introduction </span></span></b><b><span style="font-family:Wingdings;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;;
mso-char-type:symbol;mso-symbol-font-family:Wingdings"><span class="Apple-style-span" style="font-size: large;">J</span></span></b><b><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;"></span></span></b></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;text-align:
justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-bidi-font-family:
&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;">I am a computer science
undergraduate student at Delhi University, New Delhi. I have always been
influenced by the development at sugar and I would definitely like to
contribute more into it. </span></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;text-align:
justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-bidi-font-family:
&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;">I have been working as a
developer at SEETA (Software for Education, Entertainment and Training
Activities), New Delhi, India for last 10 months. </span></span><a href="http://seeta.in/j/team.html"><span class="Apple-style-span" style="font-size: large;">http://seeta.in/j/team.html</span></a><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;
mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;"> </span></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;text-align:
justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-bidi-font-family:
&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;">I am also the lead developer
of Listen and Spell activity. </span></span><span class="apple-style-span"><span style="line-height: 115%; font-family: Arial, sans-serif; color: black; "><a href="http://activities.sugarlabs.org/en-US/sugar/addon/4234" target="_blank"><span style="color:#074D8F"><span class="Apple-style-span" style="font-size: large;">http://activities.sugarlabs</span></span><span style="color:#074D8F"><span class="Apple-style-span" style="font-size: large;">.</span></span><span class="Apple-style-span" style="font-size: large;"></span><span style="color:#074D8F"><span class="Apple-style-span" style="font-size: large;">org/en-US/sugar/addon/4234</span></span></a><span class="Apple-style-span" style="font-size: large;"></span></span></span></p>


<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;text-align:
justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">Waiting for some
exciting feedback from community.</span></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;text-align:
justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;"> Regards</span></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;text-align:
justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;"> Chirag</span></span></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi"><span class="Apple-style-span" style="font-size: large;"> </span></span></p>

<p class="MsoNormal" style="margin-left:.25in;text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">  </span></span></p>

<p class="MsoNormal" style="text-align:justify"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span class="Apple-style-span" style="font-size: large;">       </span></span></p></font></span><font class="Apple-style-span" face="&#39;Times New Roman&#39;, serif"></font><p>
</p>