feat: debug stt callback
This commit is contained in:
parent
004e6c17df
commit
d24f2c9fe4
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
|
@ -91,6 +91,7 @@ def main():
|
|||
|
||||
# Register MIDI handler for speech-to-text
|
||||
def handle_stt_midi(msg):
|
||||
print(f"Received: {msg}")
|
||||
# Check if message matches our trigger
|
||||
if hasattr(msg, 'type') and msg.type == stt_trigger_type and hasattr(msg, 'channel') and msg.channel == stt_channel:
|
||||
if stt_trigger_type == "note_on" and hasattr(msg, 'note') and msg.note == stt_note:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue