Cisco Cisco Customer Voice Portal Downloads 개발자 가이드
V
OICE
E
LEMENT
: C
URRENCY
_W
ITH
_C
ONFIRM
C
ISCO
CVP V
OICE
XML 3.1
Element Specifications
Currency_With_Confirm
The Currency_With_Confirm voice element captures from the caller a currency amount in dollars and cents, and presents a
confirmation menu allowing the caller to either accept their entry or re-enter the currency value. The currency amount can be entered
using the keypad or speech input. The captured value will be stored in element data as a decimal value (without the $ character).
confirmation menu allowing the caller to either accept their entry or re-enter the currency value. The currency amount can be entered
using the keypad or speech input. The captured value will be stored in element data as a decimal value (without the $ character).
There are several different formats for speaking a currency amount or entering it through the keypad. Voice browsers may use
different grammars and therefore accept different utterances. However, the spoken formats listed below should result in the same
behavior for all supported browsers. The tables below list each input and the value that is stored in element data as a result. If some
data is left out, the system assumes a default value for the missing information.
different grammars and therefore accept different utterances. However, the spoken formats listed below should result in the same
behavior for all supported browsers. The tables below list each input and the value that is stored in element data as a result. If some
data is left out, the system assumes a default value for the missing information.
Utterance
Stored
Value
Example
Description
[dollar] "dollar(s)" ("and") [cent] "cent(s)"
D.CC
"thirteen dollars and fifty cents " = 13.50 Dollars are whole numbers >= 0. Cents are from 00 to 99.
The word "and" is optional.
[dollar] "dollar(s) "[cent]
D.CC
"thirteen dollars five" = 13.05
Dollars are whole numbers >= 0. Cents are from 00 to 99.
[dollar] "dollar(s)"
D.00
“three hundred fifty” = 350.00
A plain whole number is interpreted as dollars with no
cents.
cents.
[cent] "cent(s)"
0.CC
"three cents" = 0.03
To specify cents only, the word "cents" but be uttered.
Cents are from 00 to 99.
Cents are from 00 to 99.
DTMF Entry
Stored
Value
Example
Description
[D]*[CC]
D.CC
3*99 = 3.99
The decimal is represented by the * button.
There are other formats that are possible, particularly when entering via DTMF and inputting incomplete amounts. These inputs may
yield inconsistent results on various voice browsers. The returned variable will always be a decimal value with the appropriate number
of padded zeros if applicable.
yield inconsistent results on various voice browsers. The returned variable will always be a decimal value with the appropriate number
of padded zeros if applicable.
Copyright 2001 - 2005 Audium Corporation. All Rights Reserved. 10/05
20