Skip to content

Commit

Permalink
fix/allow_audio_state_messages_for_session (#85)
Browse files Browse the repository at this point in the history
companion to OpenVoiceOS/ovos-bus-client#93

by default allows voice sats to report if they are recording/playing audio, exposing that info to Session

avoids the need of configuring devices individually by default
```
$hivemind-core allow-msg "recognizer_loop:record_begin"
$hivemind-core allow-msg "recognizer_loop:record_end"
$hivemind-core allow-msg "recognizer_loop:audio_output_start"
$hivemind-core allow-msg "recognizer_loop:audio_output_end"
```
  • Loading branch information
JarbasAl authored May 2, 2024
1 parent b6d4844 commit 772c38b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hivemind_core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def __init__(
self.crypto_key = crypto_key
self.password = password
self.blacklist = blacklist or {"messages": [], "skills": [], "intents": []}
self.allowed_types = allowed_types or ["recognizer_loop:utterance"]
self.allowed_types = allowed_types or ["recognizer_loop:utterance",
"recognizer_loop:record_begin",
"recognizer_loop:record_end",
"recognizer_loop:audio_output_start",
"recognizer_loop:audio_output_end"]
if "recognizer_loop:utterance" not in self.allowed_types:
self.allowed_types.append("recognizer_loop:utterance")
self.can_broadcast = can_broadcast
Expand Down

0 comments on commit 772c38b

Please sign in to comment.