Maciej Zasadzki ADVICOS Report post Posted 10/21/2025 12:33 PM 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
SupportTeam Report post Posted 10/21/2025 11:12 PM 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