mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
Merge remote-tracking branch 'upstream/dev' into integration
This commit is contained in:
@@ -10,6 +10,11 @@ speaker:
|
||||
i2s_dout_pin: ${i2s_dout_pin}
|
||||
sample_rate: 48000
|
||||
num_channels: 2
|
||||
- platform: mixer
|
||||
output_speaker: speaker_id
|
||||
source_speakers:
|
||||
- id: announcement_mixer_speaker_id
|
||||
- id: media_mixer_speaker_id
|
||||
|
||||
audio_file:
|
||||
- id: test_audio
|
||||
@@ -19,7 +24,9 @@ audio_file:
|
||||
|
||||
media_source:
|
||||
- platform: audio_file
|
||||
id: audio_file_source
|
||||
id: announcement_audio_file_source
|
||||
- platform: audio_file
|
||||
id: media_audio_file_source
|
||||
|
||||
media_player:
|
||||
- platform: speaker_source
|
||||
@@ -29,15 +36,26 @@ media_player:
|
||||
volume_initial: 0.75
|
||||
volume_max: 0.95
|
||||
volume_min: 0.0
|
||||
media_pipeline:
|
||||
speaker: speaker_id
|
||||
announcement_pipeline:
|
||||
speaker: announcement_mixer_speaker_id
|
||||
format: FLAC
|
||||
num_channels: 1
|
||||
sources:
|
||||
- audio_file_source
|
||||
- announcement_audio_file_source
|
||||
media_pipeline:
|
||||
speaker: media_mixer_speaker_id
|
||||
format: FLAC
|
||||
num_channels: 1
|
||||
sources:
|
||||
- media_audio_file_source
|
||||
on_mute:
|
||||
- media_player.pause:
|
||||
- media_player.shuffle:
|
||||
id: media_player_id
|
||||
on_unmute:
|
||||
- media_player.play:
|
||||
- media_player.unshuffle:
|
||||
id: media_player_id
|
||||
on_volume:
|
||||
- speaker_source.set_playlist_delay:
|
||||
id: media_player_id
|
||||
pipeline: media
|
||||
delay: 500ms
|
||||
|
||||
Reference in New Issue
Block a user