| 26 | | exten => s,4,Flite("Welcome to the Vox Forge automated reecording system!") |
|---|
| 27 | | exten => s,5,Goto(custom-voxforge-license|s|1) |
|---|
| | 26 | exten => s,4,Set(menu-dir=${prompts-dir}/audio/menu) |
|---|
| | 27 | ;exten => s,5,Flite("Welcome to the Vox Forge automated reecording system!") |
|---|
| | 28 | exten => s,5,Playback(${menu-dir}/welcome) |
|---|
| | 29 | exten => s,6,Goto(custom-voxforge-license|s|1) |
|---|
| 31 | | exten => s,1,Flite("To use this system. You must agree to have your voice reecorded.") |
|---|
| 32 | | exten => s,2,Flite("And licensed under the G N U ... G P L.") |
|---|
| 33 | | exten => s,3,Flite("With copyright assigned to the Free Software Foundation.") |
|---|
| 34 | | exten => s,4,Flite('Press 1 if you agree. Press 2. Or hang up now. If you do not agree. Or do not understand. Press 3 for more information about the G N U ... G P L license.'|123) |
|---|
| | 33 | ;exten => s,1,Flite("To use this system. You must agree to have your voice reecorded.") |
|---|
| | 34 | ;exten => s,2,Flite("And licensed under the G N U ... G P L.") |
|---|
| | 35 | ;exten => s,3,Flite("With copyright assigned to the Free Software Foundation.") |
|---|
| | 36 | ;exten => s,4,Flite('Press 1 if you agree. Press 2. Or hang up now. If you do not agree. Or do not understand. Press 3 for more information about the G N U ... G P L license.'|123) |
|---|
| | 37 | exten => s,1,Playback(${menu-dir}/license-agree-info) |
|---|
| | 38 | exten => s,2,Background(${menu-dir}/license-agree-prompt) |
|---|
| | 39 | exten => s,3,WaitExten(10) |
|---|
| 38 | | exten => 3,1,Flite("The G N U ... G P L. or G N U... General Public License. refers to a type of Open Source license. Copyright protects a creator's right to control copies and changes to A work. By pressing 1... you agree... to give away the Copyright of your speech submission to the Free Software Foundation. And license your submission under the G P L. The G P L protects everyone's right to copy and make changes to your submission. For more information about the G P L. please go to www dot g n u dot o r g"|123) |
|---|
| 39 | | exten => 3,2,Goto(s|4) |
|---|
| 40 | | exten => i,1,Flite('Sorry. that is not a valid choice.'|1234567890) |
|---|
| | 43 | ;exten => 3,1,Flite("The G N U ... G P L. or G N U... General Public License. refers to a type of Open Source license. Copyright protects a creator's right to control copies and changes to A work. By pressing 1... you agree... to give away the Copyright of your speech submission to the Free Software Foundation. And license your submission under the G P L. The G P L protects everyone's right to copy and make changes to your submission. For more information about the G P L. please go to www dot g n u dot o r g"|123) |
|---|
| | 44 | exten => 3,1,Background(${menu-dir}/license-about) |
|---|
| | 45 | exten => 3,2,Goto(s|2) |
|---|
| | 46 | ;exten => i,1,Flite('Sorry. that is not a valid choice.'|1234567890) |
|---|
| | 47 | exten => i,1,Background(${menu-dir}/not-a-valid-choice) |
|---|
| 53 | | exten => s,1,Flite('OK, you chose ${gender}. Press 1 if this is correct. Press 2 to try again.'|12) |
|---|
| | 63 | ;exten => s,1,Flite('OK, you chose ${gender}. Press 1 if this is correct. Press 2 to try again.'|12) |
|---|
| | 64 | exten => s,1,GotoIf($[${gender} = 'male']?2:4) |
|---|
| | 65 | exten => s,2,Background(${menu-dir}/chose-male) |
|---|
| | 66 | exten => s,3,Goto(s|5) |
|---|
| | 67 | exten => s,4,Background(${menu-dir}/chose-female) |
|---|
| | 68 | exten => s,5,Background(${menu-dir}/1-correct-2-try-again) |
|---|
| | 69 | exten => s,6,WaitExten(10) |
|---|
| 71 | | exten => s,1,Flite('OK, you chose ${agerange}. Press 1 if this is correct. Press 2 to try again.'|12) |
|---|
| | 91 | ;exten => s,1,Flite('OK, you chose ${agerange}. Press 1 if this is correct. Press 2 to try again.'|12) |
|---|
| | 92 | exten => s,1,GotoIf($[${agerange} = 'youth']?2:4) |
|---|
| | 93 | exten => s,2,Background(${menu-dir}/chose-youth) |
|---|
| | 94 | exten => s,3,Goto(s|8) |
|---|
| | 95 | exten => s,4,GotoIf($[${agerange} = 'adult']?5:7) |
|---|
| | 96 | exten => s,5,Background(${menu-dir}/chose-adult) |
|---|
| | 97 | exten => s,6,Goto(s|8) |
|---|
| | 98 | exten => s,7,Background(${menu-dir}/chose-senior) |
|---|
| | 99 | exten => s,8,Background(${menu-dir}/1-correct-2-try-again) |
|---|
| | 100 | exten => s,9,WaitExten(10) |
|---|
| 316 | | exten => s,5,Flite('Now, press 1 if you are ready to hear a phrase. Or press 2 to hear these instructions again.'|12) |
|---|
| | 346 | ;exten => s,5,Flite('Now, press 1 if you are ready to hear a phrase. Or press 2 to hear these instructions again.'|12) |
|---|
| | 347 | exten => s,5,Background(${menu-dir}/1-hear-phrase-2-instructions-again) |
|---|
| | 348 | exten => s,6,WaitExten(10) |
|---|
| 331 | | exten => 10,1,Flite('Do they sound the same? Is your reecording free of laugh ing.... Cough ing.... Stutter ing.... Mispronunciations.... And background noise? Press 1 to try again. Press 2 to continue. Press 3 to hear your reecording again. Press 4 if the prompt is unclear and you would like to try a different reecording.'|1234) |
|---|
| 332 | | exten => i,1,Flite('Sorry. that is not a valid choice.'|1234567890) |
|---|
| | 364 | ;exten => 10,1,Flite('Do they sound the same? Is your reecording free of laugh ing.... Cough ing.... Stutter ing.... Mispronunciations.... And background noise? Press 1 to try again. Press 2 to continue. Press 3 to hear your reecording again. Press 4 if the prompt is unclear and you would like to try a different reecording.'|1234) |
|---|
| | 365 | exten => 10,1,Background(${menu-dir}/post-record) |
|---|
| | 366 | exten => 10,2,WaitExten(10) |
|---|
| | 367 | ;exten => i,1,Flite('Sorry. that is not a valid choice.'|1234567890) |
|---|
| | 368 | exten => i,1,Background(${menu-dir}/not-a-valid-choice) |
|---|
| 342 | | exten => s,4,Flite('Here is sentence number $[${num-complete-this-round} + 1] out of 5:") |
|---|
| 343 | | exten => s,5,Playback(${prompts-dir}/audio/${last-prompt-name}) |
|---|
| 344 | | exten => s,6,Record(/tmp/voxforge-%d:wav|0|20|) |
|---|
| 345 | | exten => s,7,Flite('OK, I will play the original phrase. Then the phrase you just recorded:'|1) |
|---|
| 346 | | exten => s,8,Gosub(sub-voxforge-hrecord-compare|s|1) |
|---|
| | 378 | ;exten => s,4,Flite('Here is sentence number $[${num-complete-this-round} + 1] out of 5:") |
|---|
| | 379 | exten => s,4,Playback(${menu-dir}/sentence-number) |
|---|
| | 380 | exten => s,5,SayNumber($[${num-complete-this-round} + 1],m) |
|---|
| | 381 | exten => s,6,Playback(${menu-dir}/out-of) |
|---|
| | 382 | exten => s,7,SayNumber(5,m) |
|---|
| | 383 | exten => s,8,Playback(${prompts-dir}/audio/${last-prompt-name}) |
|---|
| | 384 | exten => s,9,Record(/tmp/voxforge-%d:wav|0|20|) |
|---|
| | 385 | ;exten => s,7,Flite('OK, I will play the original phrase. Then the phrase you just recorded:'|1) |
|---|
| | 386 | exten => s,10,Playback(${menu-dir}/compare) |
|---|
| | 387 | exten => s,11,Gosub(sub-voxforge-hrecord-compare|s|1) |
|---|
| 371 | | exten => s,2,Flite('Congratulations! You have completed ${num-complete} phrases.') |
|---|
| 372 | | exten => s,3,Flite('We appreciate your contribution. Please. Take a moment to complete 5 more.') |
|---|
| 373 | | exten => s,4,Flite('Press 1 to complete 5 more. Or Press 9 to hang up.'|12) |
|---|
| | 412 | ;exten => s,2,Flite('Congratulations! You have completed ${num-complete} phrases.') |
|---|
| | 413 | exten => s,2,Playback(${menu-dir}/congratulations-have-completed) |
|---|
| | 414 | exten => s,3,SayNumber(${num-complete},m) |
|---|
| | 415 | exten => s,4,Playback(${menu-dir}/phrases) |
|---|
| | 416 | ;exten => s,3,Flite('We appreciate your contribution. Please. Take a moment to complete 5 more.') |
|---|
| | 417 | ;exten => s,4,Flite('Press 1 to complete 5 more. Or Press 9 to hang up.'|12) |
|---|
| | 418 | exten => s,5,Background(${menu-dir}/continue-hangup) |
|---|
| | 419 | exten => s,6,WaitExten(10) |
|---|
| 417 | | exten => s, 3,Flite('OK, this is how it works: I will reed a phrase to you. Then you will hear a beep.') |
|---|
| 418 | | exten => s, 4,Flite('After the beep, please wait for 1 second.') |
|---|
| 419 | | exten => s, 5,Flite('Then you say out loud the phrase you just herd.') |
|---|
| 420 | | exten => s, 6,Flite('Wait another second and then press the pound key.') |
|---|
| 421 | | exten => s, 7,Flite('Some phrases sound silly. Or strange.') |
|---|
| 422 | | exten => s, 8,Flite('Please avoid Laugh ing... Cough ing... Stutter ing.... Mispronunciations.... And background noise.') |
|---|
| 423 | | exten => s, 9,Flite('If any of these things happen. Please go back and reecord the phrase again.') |
|---|
| 424 | | exten => s,10,Return() |
|---|
| | 465 | ;exten => s, 3,Flite('OK, this is how it works: I will reed a phrase to you. Then you will hear a beep.') |
|---|
| | 466 | ;exten => s, 4,Flite('After the beep, please wait for 1 second.') |
|---|
| | 467 | ;exten => s, 5,Flite('Then you say out loud the phrase you just herd.') |
|---|
| | 468 | ;exten => s, 6,Flite('Wait another second and then press the pound key.') |
|---|
| | 469 | ;exten => s, 7,Flite('Some phrases sound silly. Or strange.') |
|---|
| | 470 | ;exten => s, 8,Flite('Please avoid Laugh ing... Cough ing... Stutter ing.... Mispronunciations.... And background noise.') |
|---|
| | 471 | ;exten => s, 9,Flite('If any of these things happen. Please go back and reecord the phrase again.') |
|---|
| | 472 | exten => s, 3,Playback(${menu-dir}/instructions) |
|---|
| | 473 | exten => s, 4,Return() |
|---|