<sayas>

VoiceXML 1.0 only. Java Speech Markup Language element that modifies how a word or phrase is spoken.

Syntax

<sayas

      sub="string"

      class="phone"|"date"|"time"|"digits"|"literal"|

               "currency"|"number"|"airport"|"airline"|

               "equity"|"street"|"city"|"state"|

               "citystate"

      type="phone"|"date"|"time"|"digits"|"literal"|

               "currency"|"number"|"airport"|"airline"|

               "equity"|"street"|"city"|"state"|

               "citystate"

      phon

Not implemented

>

   Text

</sayas>

Description

Note: In VoiceXML 2.0, this tag is replaced by the <say-as> tag. The <say-as> tag is from the Synchronized Speech Markup Language.

Attribute Description
sub

Substitute text to be spoken instead of enclosed text. Optional.

type
class

Speak enclosed text in the given style. Optional.

Possible values with enclosed text formats are:

 •  phone--For telephone number adhering to the North American Dialing Plan, such as 408-907-3200
 •  date--For dates, in yyyymmdd or yyyymm format, such as 20001210
 •  time--For times such as 11:45 PM
 •  digits--For digits, such as 123456
 •  literal--For literals
 •  currency--For currency in dollars and cents, such as $123.45
 •  number--For numbers, such as 10.5 or 10

Extensions:

 •  airport--For airport codes, such as DFW. For a list of the allowed airport codes, see Airport & Airline Codes on the Resources page of the BeVocal Café web site.
 •  airline--For airline codes, such as AA. For a list of the allowed airport codes, see Airport & Airline Codes.
 •  equity--For company symbol, such as ibm or csco
 •  street--For street name (with or without street number), such as bordeaux drive or 1380 bordeaux drive
 •  city--For city name, such as sunnyvale
 •  state--For state name, such as california or ca
 •  citystate--For city name and state name separated by a comma, such as sunnyvale, california

Note: The type attribute is the VoiceXML 2.0 standard; the class attribute is an extension. These two attributes are identical; only one of them should be used.

phon

Not implemented. Representation of the Unicode International Phonetic Alphabet (IPA) characters to be spoken instead of enclosed text. Optional.

The following events may be thrown during the execution of a <sayas> element:

 •  error.badfetch - Thrown in VoiceXML 2.0.
 •  error.semantic - When the type attribute contains a value which is not one of those allowed in the enumerated list of values above. Note that some values have changed between version 1.0 and 2.0.

Usage

Parents Children
<audio>
<bevocal:whisper>
<choice>
<div>
<emp>
<enumerate>
<prompt>
<pros>

None.

See Also

 •  VoiceXML 1.0 Specification: <sayas>
 •  Related tags: <break>, <div>, <emp>, <pros>

Examples

 <?xml version="1.0" ?>
 <!DOCTYPE vxml PUBLIC "-//BeVocal Inc//VoiceXML 1.0//EN"
  "http://cafe.bevocal.com/libraries/dtd/vxml1-0-bevocal.dtd">
 
 <vxml version="1.0">
   <form>
     <block>
       <prompt>
         Here is a currency amount: <sayas class="currency"> $123.45 </sayas>
         Here is a company: <sayas class="equity"> csco </sayas>
         Here is a number: <sayas class="number"> 10.05 </sayas>
         Here is an integer number. You should not hear any decimal content:
           <sayas class="number"> 10 </sayas>
         Here is an airport: <sayas class="airport"> DFW </sayas>
         Here is an airline: <sayas class="airline"> AA </sayas>
         Here is a phone number: <sayas class="phone"> 512-301-0691 </sayas>
         Here is a date: <sayas class="date"> 20001210 </sayas>
         Here is a street: <sayas class="street"> heiden lane </sayas>
         Here is a city: <sayas class="city"> austin </sayas>
         Here is a state: <sayas class="state"> texas </sayas>
         Here is a citystate: <sayas class="citystate"> austin, texas </sayas>
         Here is a digit string: <sayas class="digits"> 123456 </sayas>
       </prompt>
     </block>
   </form>
 </vxml>

[Show Frames]   [FIRST] [PREVIOUS] [NEXT]
BeVocal, Inc. Café Home | Developer Agreement | Privacy Policy | Site Map | Terms & Conditions
Part No. 520-0001-02 | © 1999-2007, BeVocal, Inc. All rights reserved | 1.877.33.VOCAL