I want to use the Voice Question action in a call flow to capture some caller's speech in a WAV file. I then want to pass the WAV filename to a database call for processing. Here are the problems:
1. How do I get the name of the WAV file in a variable? The only place it's mentioned in the help files is in the Email action where "$" is used to specify the previous recording. But "$" doesn't seem to work anywhere else and Email is _way_ too slow for what I want.
2. OK, if I can't get the VMPro filename, can I force the name to be something predictable? The Voice Question has an option to put the result in a named mailbox. I've tried using "Sales" (as per the examples), $CLI, $CID, "C:\Wavfiles", etc. VMPro seems to ignore it and insist on putting the file in VM\Greetings and no where else. Anyone manage to get this to work?
3. I've also tried VBScripting. There is a method called RecordMsg which takes the filename as a parameter. This is the script:
FileName = "C:\Recordings\" + Voice.CallingParty + ".wav"
Voice.RecordMsg FileName, 5, "Any", False, dlgid, True
and this is the result in the DbgOut.txt:
30/01 16:08:58.467 vmprov5s (09,3) 3320, 280: Session: 0000008b - Script detected
30/01 16:08:58.529 vmprov5s (09,5) 3320, 280: Session: 0000008b - RecordFile:C:\Recordings\Ü å?÷«ì9B|8÷«.wav (5) append=0 playbeep=0
30/01 16:08:58.529 vmprov5s (09,5) 3320, 280: Session: 0000008b - RecordingNode::StartPlay: The filename, directory name, or volume label syntax is incorrect.
ie. Voice.CallingParty seems to contain garbage.
OK guys, what am I missing?
1. How do I get the name of the WAV file in a variable? The only place it's mentioned in the help files is in the Email action where "$" is used to specify the previous recording. But "$" doesn't seem to work anywhere else and Email is _way_ too slow for what I want.
2. OK, if I can't get the VMPro filename, can I force the name to be something predictable? The Voice Question has an option to put the result in a named mailbox. I've tried using "Sales" (as per the examples), $CLI, $CID, "C:\Wavfiles", etc. VMPro seems to ignore it and insist on putting the file in VM\Greetings and no where else. Anyone manage to get this to work?
3. I've also tried VBScripting. There is a method called RecordMsg which takes the filename as a parameter. This is the script:
FileName = "C:\Recordings\" + Voice.CallingParty + ".wav"
Voice.RecordMsg FileName, 5, "Any", False, dlgid, True
and this is the result in the DbgOut.txt:
30/01 16:08:58.467 vmprov5s (09,3) 3320, 280: Session: 0000008b - Script detected
30/01 16:08:58.529 vmprov5s (09,5) 3320, 280: Session: 0000008b - RecordFile:C:\Recordings\Ü å?÷«ì9B|8÷«.wav (5) append=0 playbeep=0
30/01 16:08:58.529 vmprov5s (09,5) 3320, 280: Session: 0000008b - RecordingNode::StartPlay: The filename, directory name, or volume label syntax is incorrect.
ie. Voice.CallingParty seems to contain garbage.
OK guys, what am I missing?