# Java Speech Markup Language

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Java_Speech_Markup_Language
> Markdown URL: https://mediated.wiki/source/Java_Speech_Markup_Language.md
> Source: https://en.wikipedia.org/wiki/Java_Speech_Markup_Language
> Source revision: 1356814469
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

XML-based markup language

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Java Speech Markup Language" – news · newspapers · books · scholar · JSTOR (May 2024) (Learn how and when to remove this message)

**Java Speech API Markup Language** (**JSML**) is an [XML](/source/XML)-based [markup language](/source/Markup_language) for annotating text input to [speech synthesizers](/source/Speech_synthesizer). JSML is used within the [Java Speech API](/source/Java_Speech_API). JSML is an XML application and conforms to the requirements of well-formed XML documents. Java Speech API Markup Language is referred to as JSpeech Markup Language when describing the [W3C](/source/W3C) documentation of the standard. Java Speech API Markup Language and JSpeech Markup Language identical apart from the change in name, which is made to protect Sun trademarks.

JSML was developed by Andrew Hunt at [Sun Microsystems](/source/Sun_Microsystems).[1]

## Usage

JSML is primarily an XML text format used by Java applications to annotate text input to speech synthesizers. Elements of JSML provide speech synthesizer with detailed information on how to speak text in a naturalized fashion.

JSML defines elements which define a document's structure, the pronunciation of certain words and phrases, features of speech such as emphasis and intonation, etc. JSML is designed in the Java fashion to be simple to learn and use, to be portable across different synthesizers and computing platforms, and although designed for use within is also applicable to a wide range of languages.

## Example

An example of how JSML is defined is set out below:

<jsml>
  <div type="paragraph">This block about <literal>JSML</literal> is constructed as
  a <emphasis><literal> JSML </literal></emphasis> example.</div>
</jsml>

## Related standards

JSML built on the original proposal for a [speech synthesis markup language](/source/Speech_Synthesis_Markup_Language) (SSML), a set of general markup tags that could be used across different [text-to-speech (TTS) systems](/source/Speech_synthesis).[1]

The [W3C](/source/W3C) developed a standard markup language called [VoiceXML](/source/VoiceXML), also often referred to as SSML, which is based on [JSML](/source/JSML) but is not identical to it.[1] This became a formal [W3C recommendation](/source/W3C_recommendation) in 2004.

## References

1. ^ [***a***](#cite_ref-:0_1-0) [***b***](#cite_ref-:0_1-1) [***c***](#cite_ref-:0_1-2) Taylor, Paul (2009). *Text-to-Speech Synthesis*. Cambridge University Press. pp. 68–69. [ISBN](/source/ISBN_(identifier)) [9780521899277](https://en.wikipedia.org/wiki/Special:BookSources/9780521899277).

## External links

- [http://java.sun.com/products/java-media/speech/forDevelopers/JSML/](http://java.sun.com/products/java-media/speech/forDevelopers/JSML/)

---
Adapted from the Wikipedia article [Java Speech Markup Language](https://en.wikipedia.org/wiki/Java_Speech_Markup_Language) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Java_Speech_Markup_Language?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
