Last reviewed: 3/23/2024 11:01:24 AM
<CONTEXT>
A context defines the type of normalization rules to apply to the text. The SAPI 5 specification defines context identifiers. The implementation may vary among TTS engines (i.e., voices).
<SAPI>
<CONTEXT ID="date_mdy"> 01/02/03 </CONTEXT> <!-- January second oh three -->
<CONTEXT ID="date_dmy"> 01/02/03 </CONTEXT> <!-- February first oh three -->
<CONTEXT ID="date_ymd"> 01/02/03 </CONTEXT> <!-- February third oh one -->
<CONTEXT ID="date_ym"> 03-02 </CONTEXT> <!-- February oh three -->
<CONTEXT ID="date_ym"> 2003-02 </CONTEXT> <!-- February two thousand three -->
<CONTEXT ID="date_my"> 02/03 </CONTEXT> <!-- February oh three -->
<CONTEXT ID="date_my"> 02/2003 </CONTEXT> <!-- February two thousand three -->
<CONTEXT ID="date_dm"> 02/03 </CONTEXT> <!-- March second -->
<CONTEXT ID="date_md"> 02/03 </CONTEXT> <!-- February third -->
<CONTEXT ID="date_year"> 2003 </CONTEXT> <!-- two thousand three -->
<CONTEXT ID="time"> 02:30 </CONTEXT> <!-- two thirty -->
<CONTEXT ID="time"> 2'30" </CONTEXT> <!-- two minutes thirty seconds -->
<CONTEXT ID="number_cardinal"> 235 </CONTEXT> <!-- two hundred thirty five-->
<CONTEXT ID="number_digit"> 235 </CONTEXT> <!-- two three five -->
<CONTEXT ID="number_fraction"> 2/5 </CONTEXT> <!-- two fifths -->
<CONTEXT ID="number_decimal"> 2.5 </CONTEXT> <!-- two point five -->
<CONTEXT ID="phone_number"> (310) 410-9895 </CONTEXT> <!-- TTS Engine specific -->
<CONTEXT ID="currency"> $2.30 </CONTEXT> <!-- TTS Engine specific -->
<CONTEXT ID="web_url"> http://www.chant.net </CONTEXT> <!-- TTS Engine specific -->
<CONTEXT ID="email_address"> support@chant.net </CONTEXT> <!-- TTS Engine specific -->
<CONTEXT ID="address"> 5601 W Slauson Ave, Suite 158, Culver City, CA 90230 </CONTEXT> <!-- TTS Engine specific -->
<CONTEXT ID="address_postal">4G3 2F9 </CONTEXT> <!-- TTS Engine specific -->
</SAPI>
Attributes
ID
Specifies the context identifier for how text should be normalized when synthesized.
Children
none