@@ -17,11 +17,9 @@ esphome:
|
|||||||
- -D TX_ULTIMATE_EASY_STANDARD_HW_AUDIO
|
- -D TX_ULTIMATE_EASY_STANDARD_HW_AUDIO
|
||||||
|
|
||||||
i2s_audio:
|
i2s_audio:
|
||||||
id: if_i2s_audio
|
- id: if_i2s_audio
|
||||||
i2s_bclk_pin: GPIO2
|
i2s_bclk_pin: GPIO2
|
||||||
i2s_lrclk_pin: GPIO4
|
i2s_lrclk_pin: GPIO4
|
||||||
i2s_comm_fmt: stand_msb
|
|
||||||
channel: mono
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: !extend dump_config_list_packages
|
- id: !extend dump_config_list_packages
|
||||||
|
|||||||
@@ -179,4 +179,19 @@ speaker:
|
|||||||
i2s_audio_id: if_i2s_audio
|
i2s_audio_id: if_i2s_audio
|
||||||
i2s_comm_fmt: stand_msb
|
i2s_comm_fmt: stand_msb
|
||||||
channel: mono
|
channel: mono
|
||||||
|
#timeout: never
|
||||||
|
#bits_per_sample: 16bit
|
||||||
|
#sample_rate: 48000
|
||||||
|
#buffer_duration: 500ms
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- id: sw_speaker_amplifier
|
||||||
|
name: Speaker - Amplifier
|
||||||
|
platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO26
|
||||||
|
inverted: true
|
||||||
|
restore_mode: ALWAYS_OFF
|
||||||
|
internal: true
|
||||||
|
entity_category: config
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -24,10 +24,24 @@ media_player:
|
|||||||
name: Media Player
|
name: Media Player
|
||||||
internal: false
|
internal: false
|
||||||
platform: speaker
|
platform: speaker
|
||||||
|
codec_support_enabled: true
|
||||||
|
buffer_size: 250000
|
||||||
|
task_stack_in_psram: false
|
||||||
announcement_pipeline:
|
announcement_pipeline:
|
||||||
speaker: announcement_spk_resampling_input
|
speaker: announcement_spk_resampling_input
|
||||||
|
#format: WAV
|
||||||
|
#num_channels: 1
|
||||||
|
#sample_rate: 48000
|
||||||
media_pipeline:
|
media_pipeline:
|
||||||
speaker: media_spk_resampling_input
|
speaker: media_spk_resampling_input
|
||||||
|
#format: FLAC
|
||||||
|
#num_channels: 1
|
||||||
|
#sample_rate: 48000
|
||||||
|
#on_announcement:
|
||||||
|
# - mixer_speaker.apply_ducking:
|
||||||
|
# id: media_speaker_embedded
|
||||||
|
# decibel_reduction: 20
|
||||||
|
# duration: 0.0s
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: !extend dump_config_list_packages
|
- id: !extend dump_config_list_packages
|
||||||
@@ -58,15 +72,4 @@ speaker:
|
|||||||
- platform: resampler
|
- platform: resampler
|
||||||
id: media_spk_resampling_input
|
id: media_spk_resampling_input
|
||||||
output_speaker: media_speaker_embedded
|
output_speaker: media_speaker_embedded
|
||||||
|
|
||||||
switch:
|
|
||||||
- id: sw_speaker_amplifier
|
|
||||||
name: Speaker - Amplifier
|
|
||||||
platform: gpio
|
|
||||||
pin:
|
|
||||||
number: GPIO26
|
|
||||||
inverted: true
|
|
||||||
restore_mode: RESTORE_DEFAULT_ON
|
|
||||||
internal: true
|
|
||||||
entity_category: config
|
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user