Post new topic Reply to topic  [ 6 posts ] 

Board index : TeleFlow Forums : NMS Communication Boards

Author Message
 Post subject: NMS VCE voice files issues...
PostPosted: Fri Jun 13, 2008 4:27 pm 
Offline
User avatar

Joined: Fri Feb 06, 2004 11:05 am
Posts: 115
Location: Costa Rica
Now that I'm finally able to use the application I developed in TeleFlow, I noticed some problems with the voice files.

I have high quality recorded WAV files (from 44Khz to 48Khz, Stereo) and used the Voice Manager to convert them to the VCE format.

The issues:
  • One problem is that the final quality of the VCE files just sucks... Even VOX files are heard better on Dialogic hardware!
  • Another problem is that some of the converted VCE files cannot be listened to at all (you hear some noise, similar to white noise, but with bumps).
  • Finally, some of the source WAV files were not converted at all (the VCECOPY command gives error 0x3000c when ran manually).

The questions:
  • I'd like to know what are the right or recommended PCM settings for the source WAV files, so the VCECOPY application can recognize them properly. I have a WAV editor/transformer so as to batch-convert them to a single quality.
  • Also, I'd like to know what are the proper VCECOPY parameters to produce a higher quality VCE file, so as to use them in the NMSConvert.cmd batch file. Notice that I'm using a CG6060 board.
  • Finally, what about the prompts? Do they get transformed as well (I just saw one of the WAV files under Prompts converted to VCE, but not the others, though I did not see any errors during transformation).

Thanks for your support.


Back to top
 Profile  
 
 Post subject: Re: NMS VCE voice files issues...
PostPosted: Mon Jun 16, 2008 11:16 am 
Offline
Site Admin

Joined: Wed Dec 31, 1969 5:00 pm
Posts: 329
Location: Vancouver, BC
The ideal recording settings are: 16-bit, 8 KHz, mono, PCM

You should record directly into that format for the best possible audio quality on an NMS board. Note that you do not need to convert to NMS VCE format. The board can play this PCM format, provided you have the "rvoice" DSP program loaded.

The NMSConvert.cmd program already has the only settings that are supported by TeleFlow. The 24 kbit/s compression was selected as our standard for .VCE support many years ago due to resource limitations. Those limitations are in the past, but the legacy remains. The real answer to your question is to use the raw PCM .WAV files instead, as per my advice above. This is the best possible quality that can be reproduced on that card.

The prompts do not get converted automatically by TeleFlow's Script Manager. The prompts are supposed to be PCM .WAV audio, and cannot be any other format than described above.


Back to top
 Profile WWW 
 
 Post subject: Re: NMS VCE voice files issues...
PostPosted: Mon Jun 16, 2008 4:46 pm 
Offline
User avatar

Joined: Fri Feb 06, 2004 11:05 am
Posts: 115
Location: Costa Rica
Ok, I converted the Scripts to the format you suggest and they actually sound better.

However, the Prompts are not converted to VCE by TeleFlow's Script Manager :?

I then tried to use them by adding the rvoice program like this:

Code:
                          (dtmf.det_all & ptf.det_2f & \
                            (tone.gen          | \
                             rvoice.play_mulaw | \
                             voice.play_24_100 | \
                             voice.play_24_150 | \
                             voice.play_24_200 | \
                             wave.play_11_16b)   \
                           )

... it took me awhile to optimize the resource pool sizes, but it's OK, the board starts just fine. However, the WAV file does not get played... This is an example of a successful run with VCE and the failure:

Code:
  fc_MainApp==>fc_EntryMenuOptions
     [1] START
     [9] Play
        Script code is 'MO-OpcionesMI1'
        Script code 'MO-OpcionesMI1' corresponds to file 'vox\spn\scripts\mo-opcionesmi1.vce'
        Playing 'E:\Applications\IVR_RD\vox\spn\scripts\mo-opcionesmi1.vce'
           Event: VCEEVN_PLAY_DONE, Finished  , msec=2660
        Play completed.
     [22] Say
        Text is '1'
        Speaking '1'
        Playing: 'E:\Applications\IVR_RD\Vox\SPN\Prompts\uno.vce'
        File does not exist
           Could not play .vce files changing to .wav files
        Playing: 'E:\Applications\IVR_RD\Vox\SPN\Prompts\uno.wav'
           Event: VCEEVN_PLAY_DONE, CTAERR_FUNCTION_NOT_AVAIL, msec=0
        ERROR: Play failed
              (13) CTAERR_FUNCTION_NOT_AVAIL
        FAILURE
        ERROR: Missing next step
        FATAL

So, which 'rvoice' program should I load?


Back to top
 Profile  
 
 Post subject: Re: NMS VCE voice files issues...
PostPosted: Mon Jun 16, 2008 5:20 pm 
Offline
Site Admin

Joined: Wed Dec 31, 1969 5:00 pm
Posts: 329
Location: Vancouver, BC
I believe this is the one you want: rvoice.play_lin


Back to top
 Profile WWW 
 
 Post subject: Re: NMS VCE voice files issues...
PostPosted: Tue Jun 17, 2008 12:35 pm 
Offline
User avatar

Joined: Fri Feb 06, 2004 11:05 am
Posts: 115
Location: Costa Rica
It works! Thanks a lot :D

Just curious... In the NMS documentation, where can I find more information about the specific DSP programs to be used for tweaking? I'm not touching anything now that it works, but I'm curious about how you conclude the the "16-bit, 8 KHz, mono, PCM" configuration is optimal.

Thanks again.


Back to top
 Profile  
 
 Post subject: Re: NMS VCE voice files issues...
PostPosted: Tue Jun 17, 2008 5:36 pm 
Offline
Site Admin

Joined: Wed Dec 31, 1969 5:00 pm
Posts: 329
Location: Vancouver, BC
Well... "Optimal" is a subjective measurement. I will refer you to some NMS documentation on this subject, however you'll see in the newest NMS docs that your choice of codecs is expanded beyond what was available when our decision was made.

Firstly, the largest limitation is the effective audio quality that can be achieved on the PSTN. One source I had read, and I'm sorry I can't recall the name/location of it now (that research was done circa 1997 :shock: ), suggested that 8 KHz, 16-bit PCM was "best" for playing across an analog (POTS) line. The debates on this subject are almost "religious", as I've seen others claiming that 11 KHz, 8-bit is "best".

Secondly, TeleFlow supports 4 hardware "types": Ai-Logix, NMS, Dialogic and TF-Simulator (which is really a Windows media device). When selecting the optimal format to use, we wanted something that would be consistent across all 4 platforms. Unfortunately, the best match only supported 3 of the 4. At the time, Dialogic only supported PCM at 11 KHz, 8-bit, and NMS only supported PCM at 8 KHz, 16-bit. I haven't checked lately to see if Dialogic has added support for 8 KHz, 16-bit, but I did notice that NMS now supports 11 Khz, 8-bit.

Lastly, we wanted the default audio codec to be non-compressed, as most compression techniques lose a bit of quality. Raw 16-bit, 8 KHz seemed like a good choice at the time.

The best source of information on NMS's supported voice formats is "Voice Message Service Developers Reference Manual" (6422-24.pdf).

You can also get information from the individual board "Installation and Configuration" manuals, especially notice that the "rvoice" DSP program is relatively frugal when it comes to its MIPS consumption.


Back to top
 Profile WWW 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Board index : TeleFlow Forums : NMS Communication Boards


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.