feat: debug stt callback

This commit is contained in:
Jan Häusler 2025-06-30 03:43:46 +02:00
parent 004e6c17df
commit d24f2c9fe4

View file

@ -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: