VoiceGuide IVR Software Main Page
Jump to content

Record And Playback Controls

Recommended Posts

I am trying to use some playback and record controls to allow the caller to pause while recording and control playback while listening to a previous recording. When in a module (Record Sound File or Play Sound File) on the Paths tab there are options under Goto like [RECORD ACTION - Resume] and [PLAY ACTION - Jump To End].

 

I need some documentation on how to use these functions. There are no modules in my script called [RECORD ACTION - Pause] and when when I hit that command in the script the phone disconnects. In the log file I get "module [RECORD ACTION - Pause]not found" Do I need to create these modules? What module types would these type of commands be in? I am running Thanks

Share this post


Link to post

Could you please post a copy of VoiceGuide's Trace which captures system startup and the call, this will allow us to see what happened.

 

Debug Trace files are created in VG's \log\ subdirectory.

 

When posting traces/scripts please .ZIP them up and post them as attachments.

Share this post


Link to post

I have attached the logs and a copy of the script I am working on. Are there any example scripts that use record and playback controls such as pause, play, rewind, and fast forward? Thanks

Logs_and_script.zip

Share this post


Link to post

See attached script. It's a modified version of your script.

 

See the module "Review" in particular. Let us know if you have any questions.

demo.vgs

Share this post


Link to post

When I ran the demo script I still get the same error when attempting to execute a playback control like "on {2} goto [PLAY ACTION - Jump Back]". The line disconnects and in the log I get "module [PLAY ACTION - Jump Back] not found" It looks to me that the script is trying to jump to a module called [PLAY ACTION - Jump Back]. Is "PLAY ACTION - Jump Back" supposed to be an internal system function? If it is an internal function then is there something additional I need to load or enable? Thanks

0827_0811_vgEngine.zip

Share this post


Link to post

Trace shows that the [PLAY ACTION - Jump Back] was selected after the sound file completed playing.

 

The sound file started playing at 081727.615 and completed playing at 081734.693 and the key "2" was pressed 5 seconds later at 081739.490.

 

Right now play actions only function when the sound files is actually playing. (most of the play actions only make sense when a sound file is playing - volume and speed adjustments and jump forward / jump end)

 

This does raise the question as to whether we should make the 'jump back' & 'jump start' keys function after sound file is completed as well and the script is still in same module. Will advise more about this within 24 hours.

 

 

081727.615 6 5 1 state [Review] Playing wav (c:\program files\voiceguide\scripts\jason\recordings\Port_1_08.17.20.wav)

081727.615 6 5 1 t timer clear (force=False)

081727.615 6 5 1 qTel add cmd_PlayStart [0,0,0,0,0][||||]

081727.615 6 5 1 play start ok, playId=12921

081727.615 7 5 1 qTel run cmd_PlayStart

081734.693 18 5 1 ev PlayEnd 5 12921

081734.693 18 5 1 play end id=12921, (current ID)

081734.693 18 5 1 qScr add evScriptEvent 8001 EV_PLAY_FINISHED

081734.693 6 5 1 qScr run evScriptEvent sCode=[EV_PLAY_FINISHED] iActionID=0, crn=0[12921|0|0|0|0][|||||]

081734.693 6 5 1 ScriptEvent EV_PLAY_FINISHED ||

081734.693 6 5 1 LsPlayMsg EV_PLAY_FINISHED,EV_PLAY_FINISHED

081734.693 6 5 1 path {EV_PLAY_FINISHED} not found

081734.693 6 5 1 iCurrReplayCount=0, iMaxReplayCount=0

081734.693 6 5 1 t timer set 10 sec : EV_TIMEOUT_HANGUP

081734.693 6 5 1 timer set completed lTimeLeft250msUnits=40, iTimeoutCode=9001

081734.693 6 5 1 t timer set 10 sec : EV_TIMEOUT_HANGUP

081734.693 6 5 1 timer set completed lTimeLeft250msUnits=40, iTimeoutCode=9001

081739.490 18 5 1 ev dtmf 2 (67305477,50,0)

081739.490 18 5 1 qScr add evScriptEvent 50 2

081739.490 6 5 1 qScr run evScriptEvent sCode=[2] iActionID=0, crn=0[0|0|0|0|0][|||||]

081739.490 6 5 1 ScriptEvent 2 ||

081739.490 6 5 1 LsPlayMsgFinished 2,2, [ ], [ ], []

081739.490 6 5 1 path {2} found (at offset 46)

081739.490 6 5 1 FindNextVgmTitleInPathList: next module title is=[PLAY ACTION - Jump Back]

 

Share this post


Link to post

I did discover the same issue about the function being called after the playback was over. The play controls do work during playback. How many seconds does [PLAY ACTION - Jump Back] move back? I was able to setup the flow in a loop so as soon as the playback completed it jumped to a different module, this will take care of the issue with the play contols not working when playback was finished.

 

The big issue for me is being able to Pause, Jump Back, and Re-Record over existing voice while in the recording mode. We are trying to mimic the functions of a hand held digital voice recorder. Should the [RECORD ACTION - Pause] and [RECORD ACTION - Resume] work in a record module? Thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×