要做语音,查了一些资料。
Java Speech API :http://java.sun.com/prodUCts/java-media/speech/
Java Speech API 答应开发人员将语音技术整合到 Java applet 和应用程序的用户界面中。这种 API 规定一个跨平台的接口来支持命令—控制识别器、听写系统和语音合成器。
这个综合 API 被分成几个规范:
Java Speech API 规范(Java Speech API Specification,JSAPI)
Java Speech API 程序员指南
Java Speech API 语法格式规范(Java Speech API Grammar Format Specification,JSGF)
Java Speech API 标记语言规范(Java Speech API Markup Language Specification,JSML)
这个 API 没有 Sun 公司的参考实现,但是有许多第三方实现,包括 Speech for Java(可以从 IBM alphaWorks 获得),它使用 ViaVoice 来支持语音命令识别、听写和文本到语音的合成。
java.sun.com官方资料:
Question Index
Where can I get the Java Speech API (JSAPI)?
The Java Speech API (JSAPI) is not part of the JDK and Sun does not ship an implementation of JSAPI. Instead, we work with third party speech companies to encourage the availability of multiple implementations.
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 will the JSAPI specification be available?
The Java Speech 1.0 API specification was released on October 26, 1998, and is available at http://java.sun.com/products/java-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 70 classes and interfaces in the API. The specification also includes a detailed Programmer's Guide which eXPlains both introductory and advanced speech application programming with JSAPI. Two companion specifications are available: JSML and JSGF.
The specification is not yet provided with the .class files needed to compile applications with JSAPI.
Question Index
What are JSML and JSGF?
The Java Speech API Markup Language (JSML) and the Java Speech API Grammar Format (JSGF) are companion specifications to the Java Speech API. JSML (currently in beta) defines a standard 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 recognizer. Both specifications are available at http://java.sun.com/products/java-media/speech/
Question Index
How was the JSAPI specification developed?