Text to Speech Listener

I’d like to see a feature where the Volumio server listens through its API for a message to be read out.

When a message is submitted:

  1. Suspend, mute, or reduce volume of the current audio playback (if any)
  2. Use Text to Speech to read out the contents of the message
  3. Resume the audio playback when finished

The idea is that for an automated home audio system, other devices can make announcements through the speakers. For example, Asterisk can announce an incoming phone call with Caller ID, or IFTTT can announce when a given sports team scores, or a home PVR system can announce when a new episode is available for viewing.

With this feature, though, there’d have to be configurable quiet hours, during which no submitted messages get read out (unless they have an urgent flag?).