@@ -24,10 +24,24 @@ media_player:
|
||||
name: Media Player
|
||||
internal: false
|
||||
platform: speaker
|
||||
codec_support_enabled: true
|
||||
buffer_size: 250000
|
||||
task_stack_in_psram: false
|
||||
announcement_pipeline:
|
||||
speaker: announcement_spk_resampling_input
|
||||
#format: WAV
|
||||
#num_channels: 1
|
||||
#sample_rate: 48000
|
||||
media_pipeline:
|
||||
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:
|
||||
- id: !extend dump_config_list_packages
|
||||
@@ -58,15 +72,4 @@ speaker:
|
||||
- platform: resampler
|
||||
id: media_spk_resampling_input
|
||||
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