性格决定命运 气度左右格局 拼搏方能取胜 谦虚才会进步

IVR-3 开发Demo Input

上一篇 / 下一篇  2008-04-29 17:40:08 / 个人分类:做着

DtmfInput

<?xml version="1.0" encoding="UTF-8"?>

<vxml version="2.1">
.u#G6PJc$q$d)IW0  <form. id="MainMenu">ITPUB个人空间)Vl3t\IPF}:p
     <field name="color" slot="chose">
!X`Ajh:M/Q \A0       <prompt>ITPUB个人空间'V%F}G-ZZ){
         What is your favorite color?ITPUB个人空间+PN d@])LM
         Choose 1 for yellow.
!h+__k"yP0l+ZD0         Choose 2 for green.ITPUB个人空间6e \0A:^-[&Vd0I
         Choose 3 for light green.ITPUB个人空间R#GSqF xK`
         Choose 4 for dark blue.
K+b'QV2\/}0       </prompt>ITPUB个人空间 p!v qC+x?
       <grammar type="text/gsl" mode="dtmf">ITPUB个人空间5N&V e}B@3v;i$b
         <![CDATA[
5jE }8O3@] e0     [ITPUB个人空间"n;r L&v{
      [1]     {  <chose   "1"> }ITPUB个人空间p*q MfegWw6d
      [2]     {  <chose   "2"> }ITPUB个人空间J-d'x+nT Vt.U*S7]
      [3]  {  <chose   "3"> }
T S b0S~&`a5JK1f:U0      [4]  {  <chose   "4"> }ITPUB个人空间b9Pl;jU
     ]ITPUB个人空间"I`*n CW3u
   ]]>ITPUB个人空间 ~4?j;C#g)Nzc
       </grammar>
9X*h)vM ]6B0       <noinput>ITPUB个人空间pw7fjq3\c}L!in
        Did you say something? I didn't hear you .
Wa^W&H ybInf0        <reprompt />
/P @PK/d0       </noinput>ITPUB个人空间V!\.c,HmW
       <nomatch>ITPUB个人空间M3Y/T_^ X!x
          I'm sorry, no match.ITPUB个人空间:Yq6c7O{%E3[
          <reprompt />ITPUB个人空间/fKN3|md2e&W
       </nomatch>ITPUB个人空间 s,aANb#O Au
      </field>
C9Q8~vynU"g0     ITPUB个人空间yWS?i(@0XxF2j$s*e
      <filled namelist ="color">
!]r-pt{l0         <if cond="color == 1">
] h%`i:rKc0             <prompt>You said yellow.<break time="3s"/></prompt>
UIl!g,]{!~yQw)|`0         <elseif cond="color=='2'"/>
bQn(@@ L$W u0             <prompt>You said green.<break time="3s"/></prompt>
5im$G0\yPN0         <elseif cond="color=='3'"/>
{(H` }^|#q8w?(N0             <prompt>You said light green.<break time="3s"/></prompt>
cd3p4d\9g E:I-Bh0         <elseif cond="color=='4'"/>ITPUB个人空间D)xL8X)T p B:?_
             <prompt>You said dark blue.<break time="3s"/></prompt>
2izylu0         </if>ITPUB个人空间EB `#Ik@
       </filled>
#} ]P&TK}k'VX;T0    </form>ITPUB个人空间 `B4X(n z'|6g
</vxml> 

MixInput

<?xml version="1.0" encoding="UTF-8"?>

<vxml version="2.1">ITPUB个人空间[W%k-R/Ju"s g
  <form. id="MainMenu">
|3H"x:u&^ j!YM0     <field name="color" slot="chose">
6S$SnK i1c9Tq'O2m"O0       <prompt>
6y;[y+K2j1]X*P#m?/g0         What is your favorite color?
%Pl"J!jIt+uHa0         For yellow choose 1 or say yellow.ITPUB个人空间5E Tu.K[
         For green choose 2 or say green.ITPUB个人空间 \3m.otQQ9h:l
         For light green choose 3 or say light green.ITPUB个人空间1Z%g6d%| N4@*a
         For dark blue choose 4 or say dark,blue or dark blue.
Y.XhW(|,l0       </prompt>ITPUB个人空间!h4n v K"jfBx{y
       <grammar type="text/gsl">ITPUB个人空间 L(q.}T5]1?J{Y n
         <![CDATA[ITPUB个人空间F&bu%HrR
     [
1uFL \\j k W0      [dtmf-1 yellow]     {  <chose   "1"> }
Ev*I r'y:o0      [dtmf-2 green]     {  <chose   "2"> }
Bf2U$jS0      [dtmf-3 (light green)]  {  <chose   "3"> }ITPUB个人空间5^ae gDaz6A
      [dtmf-4 dark blue]  {  <chose   "4"> }
D)Y z1oZ3s0     ]ITPUB个人空间!F,C"T+a]E V'])t5_
   ]]>ITPUB个人空间 Y&m:fd6a P P C S
       </grammar>
V;ldbVx#l&F0       <noinput>
T7^%~!t5qt0        Did you say something? I didn't hear you .ITPUB个人空间:w+nEcSH
        <reprompt />ITPUB个人空间fz xHZ'n].Ti&V
       </noinput>
5`+Y;[g'B,H'P0       <nomatch>ITPUB个人空间t&cq5p{XST
          I'm sorry, no match.ITPUB个人空间!B G+uLy$MT(e
          <reprompt />
!?_n{(i0       </nomatch>ITPUB个人空间(HR)QR y uW7TPGOZ
      </field>
sn+P'J _&J'HZz0     ITPUB个人空间 `#C.cX6Je5Z@B6M
      <filled namelist ="color">
Q$D F_)O!t0         <if cond="color == 1">ITPUB个人空间9E p m6V7TQ}.D
             <prompt>You said yellow.<break time="3s"/></prompt>ITPUB个人空间)^6k6C,]:^9[XX
         <elseif cond="color=='2'"/>ITPUB个人空间~)P2q!w%z5o1f9SNm
             <prompt>You said green.<break time="3s"/></prompt>ITPUB个人空间a j"er*S;}p7xz
         <elseif cond="color=='3'"/>
t T(T;BG.o0             <prompt>You said light green.<break time="3s"/></prompt>ITPUB个人空间kC'G-bOm
         <elseif cond="color=='4'"/>ITPUB个人空间F Ob#Zn @9J8wi
             <prompt>You said dark blue.<break time="3s"/></prompt>
s.i3aS PS ~1A+K0         </if>ITPUB个人空间,C]3[ T[BDg
       </filled>
v_] @*W7GP0    </form>
9k$[Y}k:Wwn1u~0</vxml> 

VoiceInput1

<?xml version="1.0" encoding="UTF-8"?>ITPUB个人空间3[!\!Tj?A'N!M
<!-- 语音内容匹配 -->
?~.p j6@2x(f0<vxml version="2.1">ITPUB个人空间%q VVuV
  <form. id="MainMenu">
~9Z(rx\2B5W+RlI;[/}0     <field name="color">ITPUB个人空间MH\@Hs }
       <prompt>What is your favorite color?</prompt>
)lvs[&W'Ha.\0       <grammar type="text/gsl">
E'h;Y'\!PD0         [yellow green (light green) dark blue]
C TD!X6^pnW0       </grammar>ITPUB个人空间3@'N.d5V+coEa#N
       <noinput>ITPUB个人空间J6YxG(m
        Did you say something? I didn't hear you .
4w:KcYX7ad!a0        <reprompt />ITPUB个人空间oq:x?i
       </noinput>ITPUB个人空间G{v_ p+o:ED
       <nomatch>
H5c+HETa0u0          I'm sorry, no match.ITPUB个人空间SD-J})L x
          <reprompt />
+B.N`\.Yx6~0       </nomatch>ITPUB个人空间$Ehu N_ M9n"L
      </field>ITPUB个人空间xG;o-C!X T [da7M7N
     ITPUB个人空间6bz1mi Hr$_ H
      <filled namelist ="color">
pd ^N8i7W8td+UY0         <if cond="color == 'yellow'">ITPUB个人空间5R(s `nmdl
             <prompt>You said yellow.<break time="3s"/></prompt>
b.P:n9s]N,u'a4v!q0         <elseif cond="color=='green'"/>
yfJQ^ zm&A:s Q0             <prompt>You said green.<break time="3s"/></prompt>
}u QY!}pZSG0         <elseif cond="color=='light green'"/>ITPUB个人空间6h V8rh a
             <prompt>You said light green.<break time="3s"/></prompt>
d7].Lmy2i&?M0         <elseif cond="color=='dark' || color=='blue'"/>
}W$G-u d1a*~0             <prompt>You said dark blue.<break time="3s"/></prompt>
@LW*UJT0         <else/>ITPUB个人空间qL'ob(p+k$jL
           <prompt>No match but <value expr="color"/><break time="3s"/></prompt>
)X JuV.BI"{3K-w0         </if>ITPUB个人空间hO@:o%K | Hv
       </filled>
2xsBfq(na p0    </form>ITPUB个人空间g ?G&Z!{K
</vxml> 

VoiceInput2

<?xml version="1.0" encoding="UTF-8"?>ITPUB个人空间sw?u M;D tw
<!-- 语音匹配后赋值 -->
c,fK.ZoD'H0<vxml version="2.1">
(PMA(rM)d,G$H0  <form. id="MainMenu">ITPUB个人空间3MX awp"B(sR n.T
     <field name="color" slot="chose">ITPUB个人空间EMHR}:^.|Ad#p W
       <prompt>What is your favorite color?</prompt>
'Y(x'g%MV0       <grammar type="text/gsl">
*?d-b[2U+q tc0         <![CDATA[ITPUB个人空间fhWBw&sd
     [ITPUB个人空间3xp$N`5Y
      [yellow]    {  <chose   "1"> }ITPUB个人空间b!CcW2Y9c$` bZ*?
      [green]    {  <chose   "2"> }ITPUB个人空间/Qa)T ]Z:X@Hq*o%n
      [(light green)]  {  <chose   "3"> }ITPUB个人空间1O8`]F n x
      [dark blue]  {  <chose   "4"> }
#P%EI I%f6a0     ]ITPUB个人空间,q8?!@0uR JV)~;e
   ]]>
["jP}oX0C0       </grammar>ITPUB个人空间S&D9H%?1cX0k*kQg
       <noinput>
(lJ!m9KQ)Gz~0        Did you say something? I didn't hear you .
P5Ge'['Yk4oc3a0        <reprompt />ITPUB个人空间4A(H.hD_
       </noinput>
HVISZ0       <nomatch>
1`3v7uGO P0          I'm sorry, no match.
yJjz)\0b%uH0          <reprompt />
1K(xxRSnz0       </nomatch>
a#G.X!w"m2Mg0      </field>
Sx H!O:N*n0     ITPUB个人空间#gc%dlP5^~
      <filled namelist ="color">ITPUB个人空间W7R/B1IG!P&?
         <if cond="color == 1">ITPUB个人空间ty8sR(?
             <prompt>You said yellow.<break time="3s"/></prompt>
|`Y.W@u,`9pVl(\0         <elseif cond="color=='2'"/>ITPUB个人空间L8l#@7N6u1TN4d yz{u
             <prompt>You said green.<break time="3s"/></prompt>
Cw$u?E-ddwL8Y0         <elseif cond="color=='3'"/>ITPUB个人空间V i|1m/p0\Y!?.@
             <prompt>You said light green.<break time="3s"/></prompt>ITPUB个人空间 J*FH[U
         <elseif cond="color=='4'"/>ITPUB个人空间g}n[9L]Q6_k
             <prompt>You said dark blue.<break time="3s"/></prompt>ITPUB个人空间R }ii-T,K {
         </if>
Li| ?!_`:zJ UuJ nE9i0       </filled>
RO!Y+T\5vR,{-z0    </form>ITPUB个人空间9z#Z#o)kr P*Bb7b
</vxml> 


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar