squawk
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
squawk [2016-10-11 16:11] – rob | squawk [2023-11-25 23:45] (current) – Added playlist command jaso55555 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Audio Alerts (squawk) ====== | ====== Audio Alerts (squawk) ====== | ||
- | Traditionally this was handled by doorpi. However, that pi has too much stuff hanging off it, and was very out of date. There was an issue of a loud pop occurring before any sound played, this was fixed in later firmware updates. Rob has now dedicated | + | Traditionally this was handled by doorpi. However, that pi has too much stuff hanging off it, and was very out of date. There was an issue of a loud pop occurring before any sound played, this was fixed in later firmware updates. Rob has purchased |
===== Usage ===== | ===== Usage ===== | ||
Line 12: | Line 12: | ||
< | < | ||
mosquitto_pub -h mqtt -t ' | mosquitto_pub -h mqtt -t ' | ||
+ | </ | ||
+ | Play a list of sound files with no gap: | ||
+ | < | ||
+ | mosquitto_pub -h mqtt -t ' | ||
</ | </ | ||
Text-to-speech message (with a subtle notification bong): | Text-to-speech message (with a subtle notification bong): | ||
Line 23: | Line 27: | ||
**Theory:** You could direct sound two only two rooms at once by playing the left or right channel only. By default mpg123 is called with the -m option to ensure that the output is mono and thus the same sound comes out every speaker. | **Theory:** You could direct sound two only two rooms at once by playing the left or right channel only. By default mpg123 is called with the -m option to ensure that the output is mono and thus the same sound comes out every speaker. | ||
+ | |||
+ | ===== Adding new sounds ===== | ||
+ | |||
+ | Use the web file browser at http:// | ||
===== Raspbian ===== | ===== Raspbian ===== | ||
Line 180: | Line 188: | ||
speak(msg.payload) | speak(msg.payload) | ||
- | if msg.topic == 'display/doorbot/intercom': | + | if msg.topic == 'access/entrance/request': |
- | if msg.payload == ' | + | if status == ' |
play(' | play(' | ||
squawk.1476202296.txt.gz · Last modified: 2016-10-11 16:11 by rob