Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on wake word beep #9

Open
ecto1a2003 opened this issue Jul 31, 2024 · 4 comments
Open

on wake word beep #9

ecto1a2003 opened this issue Jul 31, 2024 · 4 comments

Comments

@ecto1a2003
Copy link
Contributor

I've written some extra code to add a beep when wake word is detected. do you want to review it and possibly add it?

@nirnachmani
Copy link
Owner

Sure! thank you. Any chance that you added a switch that allows the user to enable to disable the beep?

@ecto1a2003
Copy link
Contributor Author

Im not that experienced. Also hardcoded the sound path. Ao that should probably be worked into a easy to substitute setting . Ill get it uploaded tomorrow

@ecto1a2003
Copy link
Contributor Author

just getting back to this, what are you using for your timer noise
?

@nirnachmani
Copy link
Owner

I use a local fie, found it on the internet. If I remember correctly I was not able to play online sound files on the adf_media_player.

  on_timer_finished:
    - script.execute: stop_voice_assistant
    - lambda: id(voice_assistant_phase) = ${voice_assist_timer_finished_phase_id};
    - switch.turn_on: timer_ringing
    - script.execute: draw_display
    - wait_until:
        not:
          microphone.is_capturing:
    - while:
        condition:
          switch.is_on: timer_ringing
        then:
          - media_player.play_media:
              id: adf_media_player
              media_url: 'http://192.168.1.32:8123/local/voice-assistant_sounds_timer_finished.mp3'          
          - delay: 1s
    - wait_until:
        not:
          media_player.is_playing:
    - switch.turn_off: timer_ringing
    - media_player.stop
    - script.execute: return_to_idle    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants