Sphinx-4 ZipCity Demo

This is a JavaTM WebStart application that will demonstrate digit recognition. ZipCity will listen for spoken zip codes and will display the associated city and state.

ZipCity screen shot

Once ZipCity is running, click on the Speak button and then speak your zip code (a five-digit number).  The recognized digits as well as the associated city and state will be displayed

Building

You only need to build ZipCity if you are running it as a stand-alone application. You do not need to build ZipCity to run it as a WebStart application.

If you intend to run ZipCity as a stand-alone application, check the bin directory to determine if it already has the ZipCity.jar file. If not, you need to build the demo to create that JAR. To build this demo, merely type the following:

Doing so will create bin/ZipCity.jar under the top level directory. You can run the demo using java -jar (see "Running" below).

Running

To run ZipCity as a WebStart application, click here:  ZipCity WebStart

You can also run ZipCity as a stand-alone application. To do so first make sure that you have JSAPI setup correctly. JSAPI setup correctly. Then, to run the demo, type:

sphinx4> java -jar bin/ZipCity.jar [-continuous]

The -continuous option eliminates the SPEAK button. With this option, once ZipCity is running, it will continually listen for and recognize zipcodes, allowing for totally handsfree operation.

NOTE:

  1. On some systems you make be able to improve performance by increasing the heap by adding a '-mx256m' switch to the java command line.
  2. Make sure that you are using JavaTM 2 SDK, Standard Edition, v1.4 or higher.
  3. If you are running Linux and have problems with the audio, please read the Linux JavaSound section.
  4. You will, of course, need a microphone connected to your computer.
  5. If you have the source distribution, make sure that the JAR file lib/sphinx4.jar is built. If not, go to the top level directory and type: ant
  6. Visit the Java Web Start Technology page to learn more about how standalone Java software applications can be deployed with a single click over the network.

Acknowledgments

Thanks to the The Zipcode Database Project  for the use of their Zipcode database.
The zipcode map style of ZipCity was inspired by Ben Fry's zipdecode program.

Copyright 1999-2004 Carnegie Mellon University.
Portions Copyright 2002-2004 Sun Microsystems, Inc.
Portions Copyright 2002-2004 Mitsubishi Electric Research Laboratories.
All Rights Reserved. Usage is subject to license terms.