VoiceGuide IVR Software Main Page
Jump to content

Play module fallback: .wav or TTS

Recommended Posts

I’m looking for a way to set up the Play module so that it checks if a specific .wav file (e.g., prompt.wav) exists. If the file is there, it should play that .wav file. If the file is not found, it should automatically fall back to playing text-to-speech based on the text provided.

How can I configure the Play module to handle this kind of fallback between a .wav file and TTS?

Share this post


Link to post

Best approach is to have two Play modules, one playing the .WAV file and another doing the TTS.

You can use a "SoundFileNotFound" path in the WAV playing module and point that path to the TTS playing module.

If the WAV file is not found then the script will immediately go to the TTS module.

eg:

on {SoundFileNotFound} goto [PlayTTS]

 

from https://www.voiceguide.com/vghelp/source/html/modplay.htm :

Quote

If one or more of the sound files to be played cannot be found then VoiceGuide will see if a path SoundFileNotFound is defined in the module.

If the path SoundFileNotFound is defined then that path will be taken.

If the path SoundFileNotFound is not defined then VoiceGuide will play the system sound file SoundFileNotFound.wav in place of the sound files that cannot be found. 

 

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
×