-
Notifications
You must be signed in to change notification settings - Fork 23
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
MediaPlayer in voice_assistant #64
Comments
I don't see the pipeline: section for your microphone. Regarding music: I use these with Music Assistant and they work... Also can play music directly from HA... |
I use a library that listens for a keyword in a loop:
but it doesn't return to this cycle ( |
Nothing to do with incorrect YAML. Add pipeline to your mic. It's missing. |
Seeing something similar, I think I narrowed it down to when you're using a This issue seems to be fixed on i2s_audio:
- id: "my_i2s_speaker"
i2s_lrclk_pin: GPIO21 # LRC
i2s_bclk_pin: GPIO22
- id: "my_i2s_microphone"
i2s_lrclk_pin: GPIO16 # WS
i2s_bclk_pin: GPIO4 # SCK
# # MAX98357
# speaker:
# - platform: i2s_audio
# id: "my_speaker"
# dac_type: external
# i2s_dout_pin: GPIO23
# i2s_audio_id: my_i2s_speaker
# INMP441
microphone:
- platform: i2s_audio
id: my_microphone
adc_type: external
i2s_din_pin: GPIO0 # SD
i2s_audio_id: my_i2s_microphone
pdm: False
# channel: left
channel: right
# bits_per_sample: 24bit
bits_per_sample: 32bit
sample_rate: 16000
external_components:
- source:
type: git
url: https://github.com/gnumpi/esphome_audio
ref: main
# ref: dev-next
components: [ adf_pipeline, i2s_audio ]
adf_pipeline:
- platform: i2s_audio
type: audio_out
id: adf_i2s_out
i2s_audio_id: my_i2s_speaker
i2s_dout_pin: GPIO23
# - platform: i2s_audio
# type: audio_in
# id: adf_i2s_in
# i2s_audio_id: my_i2s_microphone
# i2s_din_pin: GPIO4
# pdm: False
# channel: left
# # sample_rate: 16000
# # bits_per_sample: 32bit
# microphone:
# - platform: adf_pipeline
# id: my_microphone
# # gain_log2: 3
# # keep_pipeline_alive: True
# pipeline:
# - adf_i2s_in
# - self
media_player:
- platform: adf_pipeline
id: my_media_player
name: I2S Media Player
keep_pipeline_alive: true
internal: false
pipeline:
- self
- adf_i2s_out |
Hello, I tried to add this component to my voice_assistant, but get many warnings:
(By itself, the microphone works.)
My code:
Is it also expected that the radio or mp3 files (14kb) doesn't work from HA?
Also, for some reason the log output disappeared and the command only works once. the second time it just blinks its LED endlessly
The text was updated successfully, but these errors were encountered: