Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whole house announcements with Nuvo & TTS
#1
I'm trying to figure out the most effective way to do this. I'd love to be able to write a function that takes in text to say and then:

1 - For each Nuvo Zone, save its settings to 3 Local vars - ExistingPowerState, ExistingVolumeLevel, ExistingSource. (All prefixed with Z1, Z2, etc).
2 - Change every zone to be powered on, volume level -5, and source6 selected
3 - use CQC Speech SayText to make whatever announcement (this text would be a param to the function)
4 - Using the variables saved in step #1, reset all zones back to their previous settings.

Is there a good way to do this so that I don't have to duplicate code across a number of events/triggers? Is there a way to know when the SayText has completed? I noticed a slight lag between when I make the call and when its actually spoken over the speakers.
Reply
#2
Yeh, the Speech II driver directly supports this functionality. You can configure it with three CML macros which it will call. It's all described on the driver docs page, but basically it will call one before any speech is about to start. It will call another for each new speech event. Then it will call another when all currently queued up speech is done.

Those three insertion points (and often you only need two, the first and last) provide you with the means to store current state and switch to announcement states, then put back the stored state at the end.

For the middle macro (called for each new speech event), there's a backdoor command for the driver that lets you queue up text to speak, but also to provide some custom data, and that custom data is passed to the per-event macro. You may not have a use for it, but it could be used to set up something specifically for particular types of announcements. So, in that case it would be:

1. On the start macro, save state
2. On each new event macro, look at the custom data and set up for that type of announcement
3. Restore state at the end.

Otherwise it's just:

1. On start, save state and set up for announcments
2. Don't use it
3. Restore state at the end
Dean Roddey
Explorans limites defectum
Reply
#3
For me and my Russound system, I didn't want announcements at 6am when the garbage truck comes so my event checks the power state of each zone. If it's currently on, then it will change the source to announcements, adjust the volume, then restore everything after the announcement. The only announcements I want are alarm, fire alarm, driveway alert and doorbell. Only driveway alert polls, the rest will turn on all or specific zones.
Reply
#4
I'm a newb to writing macros. Any pointers on creating one that will read/write Device fields? Or standon, mind sharing yours?
Reply
#5
It would be a little tricky to do anything extensive if aren't comfortable writing CML. There are error conditions to deal with and that sort of thing. But, given a basic example, mostly it would be more of the same. I don't have a working code base for the moment, but later when I can do it I will try to give an example.
Dean Roddey
Explorans limites defectum
Reply
#6
I've written CML a long while ago, definitely rusty on it. I did a quick look and didn't see how to read a device driver's values from CML. Any examples of that?
Reply
#7
Use the SimpleFldClient class. It has methods for reading and writing fields.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Nuvo Grand Concerto V2 & MusicPort (NV-MP) avtexan 16 5,306 08-15-2019, 12:31 PM
Last Post: Dean Roddey
  The HA use cases that are still used heavily in my house IVB 0 905 07-06-2019, 08:08 PM
Last Post: IVB
  Preferred whole house audio rtarver 24 11,128 05-14-2014, 06:32 PM
Last Post: jkish
  Help troubleshooting new installation : Nuvo GC and Clipsal C-bus CABrouwers 1 3,267 01-17-2014, 12:38 PM
Last Post: Dean Roddey
  Flash house lights on alarm Trioxide 7 3,663 01-31-2013, 12:34 PM
Last Post: Trioxide
  Nuvo Concerto - Best way to turn on all zones. ShockValue 7 4,551 01-05-2011, 09:45 AM
Last Post: SoundVideoDesign
  Need some help from some Nuvo GC owners wolverines 9 3,959 06-22-2009, 11:01 AM
Last Post: wolverines
  Nuvo Grand Concerto + Slim server? bjkiller 0 1,578 11-29-2008, 04:00 PM
Last Post: bjkiller
  Nuvo Essentia Driver Ready for Testing robertmee 17 7,481 10-15-2008, 04:34 AM
Last Post: robertmee
  Nuvo GC Template? markstewart 1 1,637 08-01-2008, 06:15 AM
Last Post: robertmee

Forum Jump:


Users browsing this thread: 1 Guest(s)