Java Voice Implementation Technology TTS data

Source: Internet
Author: User
Tags format html page include interface range variable intel pentium linux
To make a speech, look up some information.

Java Speech api:http://java.sun.com/products/java-media/speech/

The Java Speech API allows developers to integrate voice technology into the user interface of Java applets and applications. This API provides a cross-platform interface to support command-control recognizers, dictation systems, and speech synthesizers.
This integrated API is divided into several specifications:

Java Speech API Specification (Java Speech API Specification,jsapi)
Java Speech API Programmer's Guide
Java Speech API Syntax format specification (Java Speech API Grammar format SPECIFICATION,JSGF)
Java Speech API Markup Language Specification (Java Speech API Markup Language SPECIFICATION,JSML)
This API does not have a Sun company reference implementation, but there are many third-party implementations, including Speech for Java (which can be obtained from IBM Alphaworks), which uses ViaVoice to support Voice command recognition, dictation, and text-to-speech synthesis.

Java.sun.com Official information:

Question Index


Where can I get the Java Speech API (JSAPI)?
The Java Speech API (JSAPI) is isn't part of the JDK and Sun does isn't ship a implementation of JSAPI. Instead, we work with third party speech companies to encourage the availability of multiple.

Question Index


What is the Java Speech API (JSAPI)?
The Java Speech API allows Java applications to incorporate Speech technology into their user interfaces. It defines a cross-platform API to support command and control recognizers, dictation systems and speech synthesizers.

Question Index


When would the JSAPI specification be available?
The Java Speech 1.0 API specification was released on October, 1998, and are available at http://java.sun.com/products/j ava-media/speech/

Question Index


What does the Java Speech API specification include?
The Java Speech API specification includes the Javadoc-style API documentation for the approximately and classes Aces in the API. The specification also includes a detailed programmer ' s Guide which explains both introductory and advanced speech tion programming with JSAPI. Two companion specifications are AVAILABLE:JSML and JSGF.

The specification isn't yet provided with the. class files needed to compile with applications.

Question Index


What are JSML and JSGF?
The Java Speech API Markup Language (JSML) and the Java Speech API Grammar Format (JSGF) are companion to T The He Java Speech API. JSML (currently in beta) defines a standard the text format for marking up text for input to a speech synthesizer. JSGF version 1.0 defines a standard text format for providing a grammar to a speech. Both specifications are available at http://java.sun.com/products/java-media/speech/

Question Index


How is the JSAPI specification developed?
Sun Microsystems, Inc. worked in partnership with leading speech technology companies to define the initial specification The Java Speech API, JSML and JSGF. Sun is grateful for the contributions of:

Apple Computer, Inc.
At&t
Dragon Systems, Inc.
IBM Corporation
Novell, Inc.
Philips Speech Processing
Texas Instruments Incorporated
The JSAPI specification and JSGF and JSML specifications were developed as open specifications with input to a public re View process.
Question Index


How do does Jsapi relate to the other Java APIs?
The Java Speech API is part of a family of this work together as a suite to provide customers with enhanced graphics and extended communications capabilities. These APIs include the

Java 2D API
Java 3D API
Java Advanced Imaging API
Java Media Framework APIs
Java Sound API
Java Telephony API
Question Index


What JSAPI implementations are now available?
The Java Speech API is a freely available specification and therefore anyone be welcome to develop a implementation. The following implementations are known to exist.

Note:sun Microsystems, INC makes no representations or warranties about the suitability of the software listed here, EIT Her express or implied, including but not limited to the implied warranties of mechantability, fitness for a particular PU Rpose, or Non-infringement. The implementations listed here is have not been tested and regard to compliance to the JSAPI, specification nor does Appearance on this page imply any form of endorsement of compliance on the part of Sun.

Freetts on

Description:open source speech synthesizer written entirely in the Java programming language.
REQUIREMENTS:JDK 1.4. Read about more requirements on the Freetts Web site.
IBM ' s Speech for Java
Description:implementation based on IBM's ViaVoice product, which supports continuous, command and control and Speech synthesis. It supports all the European language versions of ViaVoice--US & UK 中文版, French, German, Italian and Spanish-- Plus Japanese.
REQUIREMENTS:JDK 1.1.7 or later or JDK 1.2 on Windows-with 32MB, or Windows NT with 48MB. Both platforms also require an installation ViaVoice 98.
IBM's "Speech for Java" on Linux
Description:beta version of ' Speech for Java ' on Linux. Currently only supports speech recognition.
Requirements:redhat Linux 6.0 with 32MB, and Blackdown JDK 1.1.7 with native thread support.
The Cloud Garden
Description:implementation for Recognition/tts speech engine compliant with Microsoft ' s SAPI5 (with SAPI4 su Pport for TTS engines only). An additional package allows redirection of audio data to/from Files, Lines and remote clients (using the Javax.sound.samp LED package). Some examples demonstrate its use in applets in Netscape and IE browsers.
REQUIREMENTS:JDK 1.1 or better, Windows, Me, or NT, and any SAPI 5.1, 5.0 or 4.0 compliant speech (engine of which can is downloaded from Microsoft ' s Web site.
Lernout & Hauspie ' s TTS for Java Speech API

Description:implementations based upon ASR1600 and TTS3000 engines, which support command and control and speech Synthesi S. Supports different voices and associated whispering for the 中文版 voices. Provides control for pitch, pitch range, speaking rate, and volume.
Requirements:sun Solaris OS version 2.4 or later, JDK 1.1.5. Sun Swing Package (free download) for graphical Type-n-talk demo.
More Information:contact Edmund Kwan, Director of Sales, Western Region Speech and Language Technologies and Solutions (E kwan@lhs.com)
Conversa Web 3.0

Description:conversa Web is a voice-enabled Web browser this provides a range of facilities for voice-navigation of the W EB by speech recognition and text-to-speech. The developers of Conversa Web chose to write a JSAPI implementation for the speech support.
Requirements:windows 95/98 or NT 4.0 running on Intel Pentium 166 MHz processor or faster (or equivalent). Minimum MB of RAM (MB recommended). Multimedia System:sound card and speakers. Microsoft Internet Explorer 4.0 or higher.
Festival

Description:festival is a general multi-lingual speech synthesis system developed by the Centre for speech Technology Res Earch at the University of Edinburgh. It offers a full text to speech system with various APIs, as a environment for development and the speech sy Nthesis techniques. It is written in C + + with a scheme-based command interpreter for general control and provides a binding to the Java Speech Api. Supports the 中文版 (British and American), Spanish and Welsh languages.
Requirements:festival runs on Suns (SunOS and Solaris), FreeBSD, Linux, SGIs, HPs and DEC Alphas and are portable to other Unix machines. Preliminary support is available for Windows and NT. For details and requirements the festival download page.
Elan Speech Cube

Description:elan Speech Cube is a multilingual multichannel cross-operating system text-to-speech software component fo R client-server Architecture. Speech Cube is available with 2 TTS Technologies (Elan Tempo:diphone concatenation and Elan Sayso:unit selection), cov Ering one by one languages. Speech Cube Native Java client supports JSAPI/JSML.
REQUIREMENTS:JDK 1.3 or later on Windows nt/2000/xp, Linux or Solaris 2.7/2.8, Speech Cube V4.2 and higher.
About Elan Speech:elan Speech is a established worldwide provider of text-to-speech technology (TTS). Elan TTS transforms any it generated text to speech and reads it out loud.
Question Index


How does I use the JSAPI in an applet?
It is possible to use JSAPI into an applet. In order to does this, the users would need the Java Plug-in (the Http://java.sun.com/products/plugin). The reason to the JSAPI implementations require access to the AWT EventQueue, and the built-in JDK support in th E browsers we ' ve worked with denies any applets access to the AWT eventqueue. The Java Plug-in doesn ' t have this restriction, and users can configure the Java Plug-in to grant or deny applets access to The AWT Queue.

If you are using JRE 1.1:
Have your users follow these steps if your applets is based upon JDK 1.1:

Obtain a JDK 1.1.7 or better Java Runtime environment (JRE). The reason for it is we have had problems with applets security being denied with JDK 1.1.6. The user needs the JRE and not the JDK. The JRE is freely available for download the following URL:
http://java.sun.com/products/jdk/1.1

Before running the browser have the user modify their CLASSPATH environment variable to include the supporting classes fo R Jsapi. For example, if the user has IBM's Speech for Java, have the user include the Ibmjs.jar file in CLASSPATH.
Make sure no shared libraries for the JSAPI support are in the user ' s PATH. For example, if the user has IBM's Speech for Java, have the user include the Ibmjs lib directory in their PATH (e.g., C:\ Ibmjs\lib).
Have the user copy the speech.properties to their home directory. A user can determine their home directory by enabling to the console for the Java Plug-in. When the user accesses a page that uses the Java Plug-in, the Java Plug-in console would tell the user what it thinks the U Ser ' s home directory is.
Use Javakey to add your the identity to their signature database (i.e., identitydb.obj). This is tell-the Java Plug-in to-trust applets signed by you. Information on Javakey and signing can is found at the following URL:
Http://java.sun.com/security/signExample
Http://java.sun.com/products/plugin/1.1.1/signed.html

Copy the identitydb.obj that is created or updated in previous step to the user's home directory (the same place where th E user copied speech.properties).
Then perform steps on your applet:

Use Javakey to both create a signature the database for your system and to sign applet ' s jar file. This is allow the applet to participate in the security model.
Create an HTML page this uses your applet in the Plug-in. The "Http://java.sun.com/products/plugin/1.1.1/docs" for the more information on "how" this.
If the user experiences a "Checkread" exception while attempting to run your applet, it's most likely the due to a mismatch is Tween the user ' s Identitydb.obj file and the signature on your applet ' s jar file. A Way to remedy it to recreate your identitydb.obj and re-sign your jar file.
If you are using JRE 1.2:
The Java 2 platform ' s security model allows signing as do with JDK 1.1, but it also permits finer grained access control . The following are just some examples, and we recommend you read the Java security Architecture specification at the follow ing URL before deciding what to do:

Http://java.sun.com/products/jdk/1.2/docs/guide/security/spec/security-spec.doc.html

For a quick start, have your users do the following if your applet uses the Java 2 (i.e., JDK 1.2) platform:

Obtain the JDK 1.2 Plug-in.
Before running the browser have the user modify their CLASSPATH environment variable to include the supporting classes fo R Jsapi. For example, if the user has IBM's Speech for Java, have the user include the Ibmjs.jar file in CLASSPATH.
Make sure no shared libraries for the JSAPI support are in the user ' s PATH. For example, if the user has IBM's Speech for Java, have the user include the Ibmjs lib directory in their PATH (e.g., C:\ Ibmjs\lib).
Have the user copy the speech.properties to their home directory. A user can determine their home directory by enabling to the console for the Java Plug-in. When the user accesses a page that uses the Java Plug-in, the Java Plug-in console would tell the user what it thinks the U Ser ' s home directory is.
Have the user modify their Java.policy file in the Java Plug-in ' s security directory appropriately. There are many ways to doing this. The following are just a few possibilities:
Grant all applets the Allpermission property. This is extremely dangerous and are only provided as a example. To does this, have the user modify their Java.policy file to contain only the following:
Grant {
Permission java.security.AllPermission;
}

Grant permissions to a particular URL (e.g., the URL containing your applet). To does this, have the user add the following lines to their Java.policy file:
Grant CodeBase "Http://your.url.here" {
Permission java.security.AllPermission;
}

The information in this FAQ isn't meant to being a complete tutorial on the JDK 1.1 and JDK 1.2 architecture. Instead, it is meant to being hopefully enough to get you started with running Jsapi applets in a browser. We suggest you visit the following URL to obtain more information on the Java security models:

Java Security Home Page:
Http://java.sun.com/security

Tutorial on JDK 1.1 security:
http://java.sun.com/docs/books/tutorial/security1.1

Tutorial on JDK 1.2 security:
http://java.sun.com/docs/books/tutorial/security1.2

Question Index


Why does Netscape Navigator or Internet Explorer throw a security exception while I use the JSAPI in an applet?
JSAPI implementations require access to the AWT eventqueue. The built-in Java platform support in the browsers we ' ve worked with denies a applet access to the AWT eventqueue. As a result, JSAPI implementations would be denied access to the AWT eventqueue. In addition, we are not aware of a way to configure the built-in Java platform support in this environments to allow ACCE SS to the AWT EventQueue.

The Java Plug-in (http://java.sun.com/products/plugin), however, can be configured to allow the applet the necessary PE Rmissions it needs to use a implementation of JSAPI. As a result, we currently recommend using the "Java Plug-in for applets" use JSAPI.

Question Index


I ' m concerned about Jsapi applets "bugging" my office. What are the plans for Jsapi and security on JDK 1.2?
The JSAPI 1.0 specification includes the Speechpermission class that currently only supports one SPEECHPERMISSION:JAVAX.S Peech. When so permission is granted, a application or applet has access to all the capabilities provided by installed speech Recognizers and synthesizers. Without that permission, a application or applet has no access to speech capabilities.

As speech technology matures it is anticipated that a finer-grained permission model would be introduced to provide access By applications and applets to some, but not all, speech capabilities.

Before granting speech permission, developers and users should consider the potential impact of the "grant".

Question Index


Does Jsapi allow me to control the audio input source of a recognizer or redirect the audio output of a speech synthesizer ?
This support isn't currently in JSAPI. We'll use the Java Sound APIs to the future of this support. We purposely left room to expansion in the Javax.speech.AudioManager interface and would further investigate this support After the Java Sound API is finalized.

Question Index




Tried a number of products, found that for Chinese not ah, that the introduction ah?




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.