sprex logo
Sprex
Banner Image
      
 

 

 

 

 

 

 

News: Downloadable PDA Demos

Introduction

Technical Description

How To

Documents

Product Brief

White Paper

Supported Platforms

Consulting

License Terms

NFL Demo

Downloads

Secure Travel Demo

FAQ's for Users
& Developers

Registration Form and License Agreement

SDK Access

Client Access

Feedback

Other Sprex Products/Services

Exit

 

 

 

 

 

 

 


Demo SETUP Instructions

Overview (PocketPC and Java)

For our PocketPC-based demos, follow
these steps, and also review our audio checklist.

For our Java-based demos, don't skip these steps:

In both cases (PocketPC-based demos and Java-based demos), review further frequently asked questions and our answers.

Java Setup

This ANSR demo is a Java 2 applet which records audio from your sound card. Thus the Java 2 plugin must be installed, and Java's security settings must specify that audio recording is allowable.

Get the Java Plugin

You can download and install the JRE (Java Runtime Environment) from java.sun.com. The JRE includes the Java Plug-in. Download JRE 1.3.1 or later (it must include Java 2 functionality, since audio recording is required for speech recognition and that requires Java 2). Select your OS from among Solaris, Windows, and Linux at http://java.sun.com/j2se/downloads.html.

Details: Plugin installation for MS Windows:

Download the JRE (JRE v 1.3.1_07 or greater) from
http://java.sun.com/j2se/downloads.html
by clicking the continue button under "US English". Accept the license agreement, then click on "FTP Download" on the following page. Choose the "Run this program from its current location" option (or save it to disk and then execute it yourself), and follow the instructions to install the JRE into a new "JRE" directory on your computer (for example: C:\java\jre).

Details: Plugin installation for Netscape on Linux:

Download the RPM from
http://java.sun.com/j2se/downloads.html.
Read the installation instructions (for 1.3) at
http://java.sun.com/j2se/1.3/jre/install-linux.html.
The files will be installed in the directory, /usr/java/jre{version} (for example: /usr/java/jre1.3.1_07). Set an environment variable so that netscape can find the plugin:
export NPX_PLUGIN_PATH=/usr/java/jre{version}/plugin/i386/ns4
or in my case
export NPX_PLUGIN_PATH=/usr/java/jre1.3.1_01/plugin/i386/ns4
Restart netscape. (In our case, we had to reboot to get netscape to recognize the plugin.)

Details: Plugin installation for other platforms:

For Macintosh/Apple,
check this out. Apple Computer, Inc. provides comprehensive support for Java 2. Please let us know of any questions, comments or suggestions at info@sprex.com.

The instructions above probably have a family resemblance to the steps you will need to take to install Java 2 for your platform; presently that's the best we can do for you.

If you can share your experience with us, so that other users can benefit, we would very much appreciate an email from you describing your own step-by-step installation procedure. Please let us know the operating system name and version, and browser name and version, and email us at info@sprex.com. Thank you!

Java security

The default JRE installation is so careful about security that it doesn't even allow Java to record audio from your computer's sound card. To run the demo, you may have to add permissions to Java's java.policy file, so that it looks something like this sample policy file. Here's how.

  • Find the active file: Locate your active "java.policy" file. This text file is normally located at
        java.home\lib\security\java.policy
    

    Here, java.home is your runtime environment's directory: the jre directory in the SDK (for example: C:\java\jre) or the top-level directory of your Java 2 Runtime Environment (for example: C:\Program Files\Java\j2re1.4.0_03\lib\security). You can find all the java.policy files on your computer as follows:
    In Windows XP, click on Start,
    then Search,
    then All files and folders,
    then enter "java.policy" in the "All or part of the file name:" field,
    then ensure "Look in" is set to "Local Hard Drives",
    then click the Search button (ensure that system folders are examined, under advanced options),
    then in the Recording Control dialog box:
    click the "Select" checkbox for either the "Microphone" or "Line In", according to which jack the mike is plugged into.
    Also here you can adjust the volume levels.
    Then close the three newly opened windows via their upper right "X" buttons.

  • Open the one with the most recent date modified field in WordPad: Rename the one with the most recent date modified filed to java.policy.orig. Open this java.policy.orig file with a plain-text text editor such as WordPad or emacs (Word makes it harder to save it in the right format, and NotePad misinterprets the line breaks) using right-click followed by "Open With..." and "WordPad". Notice that the file contains the keyword grant { followed by many permission lines, followed by a }; line at the end of the file.

  • Add a permission line in the right place: To make your java.policy file work (like the sample modified policy file), add the needed audio recording permission line, thus: Copy the following line, and then Edit->Past Special... it as "Unformatted Text" into your policy file after the last of the permissions and before the final };

    	permission javax.sound.sampled.AudioPermission "record";
    
    
  • Save it: Then save the file as plain ASCII text to the name "java.policy.allowrecord" in the same directory as your java.policy.orig file; no special formatting is allowed.

  • Activate it: Copy java.policy.allowrecord to its parent directory (using, for example Windows Explorer). Change the name of the copied file to java.policy. Ensure you have backed up your original java.policy file to java.policy.orig as described above. Then move the java.policy.allowrecord file renamed to java.policy to over-write the existing java.policy file (via cut from the parent directory and paste into the java.policy directory, often the security directory). Then reboot or at least restart your web-browser to activate the new java.policy file. You may need to select the Java whose java.policy file was modified using Internet Explorer -> Tools -> Internet Options -> Advanced -> Java (Sun) or Microsoft VM. Please let us know of any comments you have on these steps for your specific environment. Thanks!

Reboot the machine or restart the browser or reload the demo page

In Windows after installing Java and setting the security profile, reboot.

To experiment with Java and system settings, while re-trying the ANSR demo, shut down and restart your browser, so that the previous settings are cleared from active use in the browser.

Alternatively you may simply reload the demo web page to restart the demo applet. However this sometimes leaves data loaded in the browser so if some there was a bad setting in a previous attempt, it may still be there in the browser even if you reload the page and the applet. Restarting the browser gives greater confidence that the new settings are really being used.

Audio Checklist

ANSR must hear your voice clearly to be able to recognize what you say. Here are some things to check.

Copyright © 1996-2005 Sprex, Inc. All rights reserved. Sprex, Speech in the Network, TallyGram and ANSR are trademarks of Sprex, Inc.
All other trademarks belong to their respective owners.
Date: September 2, 2010