-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainIt.xml
156 lines (144 loc) · 5.6 KB
/
mainIt.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="it-IT">
<!--Italian Language-->
<form id="mainEn">
<field name="choosevote_or_opinion">
<prompt>Volete votare o esprimere un'opinione?</prompt>
<noinput>Per favore, dica voto o opinione.</noinput>
<grammar mode="voice" root="vop">
<rule id="vop" scope="public">
<one-of>
<item>voto</item>
<item>opinione</item>
</one-of>
</rule>
</grammar>
</field>
<filled>
<if cond="choosevote_or_opinion == 'voto'">
<prompt>Scegliete di votare.</prompt>
<assign name="vote_or_opinion" expr="'0'"/>
<goto next="#voteEn"/>
<else/>
<prompt>Avete scelto di esprimere la vostra opinione.</prompt>
<assign name="vote_or_opinion" expr="'1'"/>
<goto next="#opinionEn"/>
</if>
</filled>
</form>
<form id="voteEn"> <!--Vote part-->
<field name="choosevote">
<prompt>Qual è il vostro voto? Dite sì se siete d'accordo e no se non siete d'accordo.</prompt>
<help>Si prega di dire Sì o No.</help>
<grammar mode="voice" root="vop2">
<rule id="vop2" scope="public">
<one-of>
<item>sì</item>
<item>no</item>
</one-of>
</rule>
</grammar>
</field>
<filled>
<assign name="voteText" expr="choosevote"/>
<if cond="choosevote == 'sì'">
<assign name="choice" expr="'1'"/>
<else/>
<assign name="choice" expr="'0'"/>
</if>
<goto next="#voteFormEn"/>
</filled>
</form>
<form id="voteFormEn"> <!--Vote Yes-->
<field name="choosevoteYes">
<prompt>Scegliete il <value expr="voteText" /> come voto.</prompt>
<prompt>Siete sicuri che il vostro voto sia corretto?</prompt>
<help>Si prega di dire Sì o No.</help>
<grammar mode="voice" root="vopYes">
<rule id="vopYes" scope="public">
<one-of>
<item>sì</item>
<item>no</item>
</one-of>
</rule>
</grammar>
</field>
<filled>
<if cond="choosevoteYes == 'no'">
<goto next="#mainEn"/>
<else/>
<goto next="#opinionAfterVoteEn"/>
</if>
</filled>
</form>
<form id="opinionAfterVoteEn"> <!--Opinion AFTER Voting-->
<field name="opinionAfterVote">
<prompt>Volete anche voi esprimere la vostra opinione?</prompt>
<noinput>Si prega di dire Sì o No.</noinput>
<nomatch>Si prega di dire Sì o No.</nomatch>
<grammar mode="voice" root="vfy">
<rule id="vfy" scope="public">
<one-of>
<item>sì</item>
<item>no</item>
</one-of>
</rule>
</grammar>
</field>
<filled>
<if cond="opinionAfterVote == 'no'">
<goto next="#postResult"/>
<else/>
<assign name="vote_or_opinion" expr="'2'"/>
<goto next="#opinionEn"/>
</if>
</filled>
</form>
<form id="opinionEn"> <!--Opinion-->
<record name="msg" beep="true" maxtime="10s" finalsilence="2000ms"
dtmfterm="true" type="audio/x-wav">
<prompt timeout="2s" bargein="false">
Registrate la vostra opinione dopo il segnale acustico.
</prompt>
<noinput>
Non ho sentito nulla, riprovi.
</noinput>
</record>
<field name="confirm">
<prompt>
La sua opinione è <audio expr="msg"/>.
</prompt>
<prompt>
Per tenerlo, dite sì. Per scartarlo, dite no.
</prompt>
<grammar mode="voice" root="vfy">
<rule id="vfy" scope="public">
<one-of>
<item>sì</item>
<item>no</item>
</one-of>
</rule>
</grammar>
<filled>
<assign name="opinion" expr="msg"/>
<if cond="confirm == 'sì'">
<goto next="#postResult"/>
</if>
</filled>
</field>
</form>
<form id="postResult"> <!--Opinion-->
<block>
<assign name="key" expr="'bipvote'"/>
<if cond="vote_or_opinion == '0'">
<assign name="opinion" expr="'0'"/>
<elseif cond="vote_or_opinion == '1'"/>
<assign name="choice" expr="'0'"/>
</if>
<assign name="lang" expr="'it'"/>
<submit enctype="multipart/form-data"
method="post" namelist="opinion choice vote_or_opinion key lang" next="https://bipvote.ml/vote/" />
<clear/>
</block>
</form>
</vxml>