VoiceGuide IVR Software Main Page
Jump to content

Running Program

Recommended Posts

I try to convert recorded call as wav convert to mp3 format.

 

I use "RUN PROGRAM" MODULE in call termination script with command line: "callrecord\ffmpeg.exe -i $RV[session_id].wav $RV[session_id].mp3"

 

but nothing happens

 

this command working properly

C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe -i 11012811591454.wav 11012811591454.mp3

Share this post


Link to post

Suggest specifying the full path to ffmpeg.exe, as you have specified in the working example.

Share this post


Link to post

Please post the vgEngine trace capturing the call.

 

Please .ZIP up traces before posting.

Share this post


Link to post

Have you tried providing the full file path specification for the filenames passed in as arguments?

 

ffmpeg.exe may need full paths specified so that it knows where to find/put the files.

 

113813.338 6 4 2 state [konwersja] Run Program

113813.338 6 4 2 rv replace start [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe $RV[session_id].wav $RV[session_id].mp3]

113813.338 6 4 2 rv replace end [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe 11012811373254.wav 11012811373254.mp3]

113813.338 6 4 2 File.Exists(C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe) is true

113813.338 6 4 2 running program=[C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe], arguments=[11012811373254.wav 11012811373254.mp3], windowStyle=NormalFocus, timeout=1

113813.338 6 4 2 ShellExe start [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe][11012811373254.wav 11012811373254.mp3]

113813.353 6 4 2 Run Program waiting... (processHandle=39392, pid=4652)

113813.353 6 4 2 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE

113814.322 22 4 2 timer EV_TIMEOUT_CHECKONSTATE

113814.322 22 4 2 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE

113814.322 6 4 2 qScr run evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0[0|0|0|0|0][|||||]

113814.322 6 4 2 scriptevent EV_TIMEOUT_CHECKONSTATE 0|0|0 ||

113814.322 6 4 2 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE

113814.353 6 4 2 Process.HasExited error when test (Proces zakoñczy³ siê, wiêc ¿¹dane informacje nie s¹ dostêpne.). Assume completed.

113814.353 6 4 2 task completed. vgm=92, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]

113814.353 6 4 2 ExeResult_NextVgm has not been set. check for Result file.

113814.353 6 4 2 no result file returned from program (VGRUNRESULT_4.TXT).C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe $RV[session_id].wav $RV[session_id].mp3

113814.353 6 4 2 FindNextVgmTitleInPathList: next module title is=[Hangup the Call 1]

 

 

 

115959.791 6 4 2 state [konwersja] Run Program

115959.791 6 4 2 rv replace start [callrecord\ffmpeg.exe -i $RV[session_id].wav $RV[session_id].mp3]

115959.791 6 4 2 rv replace end [callrecord\ffmpeg.exe -i 11012811591454.wav 11012811591454.mp3]

115959.791 6 4 2 File.Exists(C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe) is true (orignal relative path was: callrecord\ffmpeg.exe)

115959.791 6 4 2 running program=[C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe], arguments=[-i 11012811591454.wav 11012811591454.mp3], windowStyle=NormalFocus, timeout=1

115959.791 6 4 2 ShellExe start [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe][-i 11012811591454.wav 11012811591454.mp3]

115959.791 6 4 2 Run Program waiting... (processHandle=39460, pid=5708)

115959.791 6 4 2 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE

115959.806 22 4 2 db odbc query completed.

120000.619 4 4 2 timer EV_TIMEOUT_CHECKONSTATE

120000.619 4 4 2 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE

120000.619 6 4 2 qScr run evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0[0|0|0|0|0][|||||]

120000.619 6 4 2 scriptevent EV_TIMEOUT_CHECKONSTATE 0|0|0 ||

120000.619 6 4 2 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE

120000.619 6 4 2 Process.HasExited error when test (Proces zakoñczy³ siê, wiêc ¿¹dane informacje nie s¹ dostêpne.). Assume completed.

120000.619 6 4 2 task completed. vgm=86, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]

120000.619 6 4 2 ExeResult_NextVgm has not been set. check for Result file.

120000.619 6 4 2 no result file returned from program (VGRUNRESULT_4.TXT).callrecord\ffmpeg.exe -i $RV[session_id].wav $RV[session_id].mp3

120000.619 6 4 2 FindNextVgmTitleInPathList: next module title is=[Hangup the Call 1]

 

Share this post


Link to post

I tried many options.

Can You to test by yourself?

 

[konwersja]

Type=Run Program

DispSize=69

Txt=Run the program, and read in the results file created. The results supplied can then be used in other parts of the script (see Result Variables).

ProgramToRun="C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe" -i "C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\$RV[session_id].wav" "C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\$RV[session_id].mp3"

RunHoldPlay=

RunMode=1

RunWait=1

on {success} goto [Hangup the Call 1]

on {fail} goto [Hangup the Call 1]

 

 

http://www.ffmpeg.org/

ffmpeg.exe (freeware) convert wav to mp3

Kopia 0130_1828_vgEngine.zip

Share this post


Link to post

Worked fine when we tried it here. See attached output file and trace.

 

Maybe try with simpler paths first? eg:

 

c:\ffmpeg.exe -i c:\0.wav c:\0.mp3

ffmpegTest.zip

Share this post


Link to post

Works fine on our test systems.

 

Are you sure the .WAV file that you use as input to the program exists?

 

Please see out attached test with $RVs used as part of filenames in Run Program command line:

runprogtestwithRV.zip

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
×