The supplied voice segments for each locale include one set of four voice segments for currency names, as shown in Table 1. Because locale includes country or region as well as language, these names are the names of the main local currency. Normally, the AudioCurrency object speaks the currency names for this currency. For example, if the locale is en_US, the value 2.25 is spoken as “two dollars and twenty-five cents”.
Voice segments for XYZ currency |
Example |
---|---|
XYZ_majorcur (major currency name, singular) |
“dollar” |
XYZ_majorcurs (major currency name, plural) |
“dollars” |
XYZ_minorcur (minor currency name, singular) |
“cent” |
XYZ_minorcurs (minor currency name, plural) |
“cents” |
The currency property of the AudioCurrency object allows you to speak a value as an amount in a currency that isn’t the local currency. For example, you might want to talk about British currency in France, or you might want to talk about Euros anywhere in Europe. Table 2 shows an example of this, and Table 3 shows what voice segments you would need.
In the following locales, currency amounts are spoken in euros and cents by default: French, Castilian Spanish, Catalan, German and Italian. To revert to the old national currency, specify PREEURO in the variant part of the locale property. Alternatively, you can specify dtj.preeuro.support=true in the dtj.ini file to achieve the same result. To speak a numeric value as a euro amount in a locale which doesn't default to euro, you need to:
dtjplex -action importVoiceAll -controlfile <path>\impexpeuro.cfv
locale |
GBP currency |
FRF currency |
EUR currency |
---|---|---|---|
en_GB |
“twenty million pounds” |
“twenty million francs” |
“twenty million euros” |
fr_FR |
“vingt millions de livres sterling” |
“vingt millions francs” |
“vingt millions euros” |
locale |
Voice segments required |
||
---|---|---|---|
en_GB |
GBP_majorcur |
FRF_majorcur |
EUR_majorcur |
GBP_majorcurs |
FRF_majorcurs |
EUR_majorcurs |
|
GBP_minorcur |
FRF_minorcur |
EUR_minorcur |
|
GBP_minorcurs |
FRF_minorcurs |
EUR_minorcurs |
|
fr_FR |
GBP_majorcur |
FRF_majorcur |
EUR_majorcur |
GBP_majorcurs |
FRF_majorcurs |
EUR_majorcurs |
|
GBP_minorcur |
FRF_minorcur |
EUR_minorcur |
|
GBP_minorcurs |
FRF_minorcurs |
EUR_minorcurs |
character_encoding = Cp1252 #export : segment_locale = fr_FR export_type = raw #import : import_hints = Q0S0 file_encoding = wav segment_name = EUR_majorcur segment_category = System file_name = euro.wav ; segment_name = EUR_majorcurs segment_category = System file_name = euros.wav ; segment_name = EUR_minorcur segment_category = System file_name = cent.wav ; segment_name = EUR_minorcurs segment_category = System file_name = cents.wav ;