Shinyshoes
Member
I have the text to speech module and use it for whole-house Announcements through my Nuvo Grand Concerto. The text to speech module had the ability to prepend an audio file to the announcement. I thought this would be a good idea for some of my announcements but i have some situations that I dont want it to occur.
I added a simple if statement to my script but I am having trouble dynamically assigning an audio file to the "Audio Clip" variable in the text to speech module. I added a media provider for the wav file I want, but it imports as "attention.wav" so when i try to assign it to the speech module in code "set Devices.CustomDevices.Speech.AudioClip = media.Content.Effects.Attention.wav" it thinks the .wav is a property of the object and I get an error saying "Object doesnt suppor this property or method."
Any idea on how I can dynamically assign this audio file to the speech module?
I added a simple if statement to my script but I am having trouble dynamically assigning an audio file to the "Audio Clip" variable in the text to speech module. I added a media provider for the wav file I want, but it imports as "attention.wav" so when i try to assign it to the speech module in code "set Devices.CustomDevices.Speech.AudioClip = media.Content.Effects.Attention.wav" it thinks the .wav is a property of the object and I get an error saying "Object doesnt suppor this property or method."
Any idea on how I can dynamically assign this audio file to the speech module?