band of the resistor is set as optional.
There is one form level grammar defined as an external JSGF
(Java Speech Grammar Format) file. The grammar file defines a set of
rules, which establish what the user can say and how the utterance
is translated back into the voice form. This grammar has one main public rule, which is comprised of four child rules, one for each resistor
band. The fourth one is optional.
The individual bands are further broken down into rules that
define which colors can be spoken for each position. Inside of the
when the word on the right is matched. For each band on the
resistor, I use semantic interpretation to store
both the numerical value of the color in that
position and the name of the color itself.
These values map to two fields in the voice
Getting back to the voice form, once an
function in the page that draws the colors of the resistor.
The combination of many Web technologies and standards allows
authors to create useful applications with very nice user interfaces.
Adding voice to that interface can greatly improve the ease of use of
the application by another mode of input and output. What would
normally require selecting a value from four or five different controls
can now be accomplished with a single spoken utterance. Plus, you
don’t need to take your eyes off of your work, as the results can be
spoken back to you through text to speech. ■
Adding voice to an
erface can grea
prove the ease
of the applicat
input and output.
The technology builder's source for kits, components, supplies, tools, books and education.
Robot Kits For All Skill Levels
utterance is matched against the grammar,
the values of the fields in the voice form are
set to the values from the code executed in
the semantic interpretation and the <filled>
section of the voice form is executed. This is
where you can do any processing required
after the recognition takes place. For this
application, this is where I calculate the
resistor’s value, construct the text to speech
output phrase, and update the visual elements
on the page.
A combination of the <assign> and
<value> tags are used to assign values directly
ICs, Transistors, Project Kits
Motors, Frame Components
and Scratch Builder Supplies.
BEAM Kits and Components
Order by Internet, phone, fax or mail.
180 El Camino Real
Millbrae, CA 94030
Visit our store near SFO!
Most orders ship the day received! World-wide shipping. Convenient payment options.
November 2005 NUTS & VOLTS 53