mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
[speaker] Media Player Components PR9 (#8171)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,8 @@ media_player:
|
||||
- media_player.pause:
|
||||
on_play:
|
||||
- media_player.stop:
|
||||
- media_player.stop:
|
||||
announcement: true
|
||||
on_pause:
|
||||
- media_player.toggle:
|
||||
- wait_until:
|
||||
|
12
tests/components/speaker/common-media_player.yaml
Normal file
12
tests/components/speaker/common-media_player.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
<<: !include common.yaml
|
||||
|
||||
media_player:
|
||||
- platform: speaker
|
||||
id: speaker_media_player_id
|
||||
announcement_pipeline:
|
||||
speaker: speaker_id
|
||||
buffer_size: 1000000
|
||||
volume_increment: 0.02
|
||||
volume_max: 0.95
|
||||
volume_min: 0.0
|
||||
task_stack_in_psram: true
|
9
tests/components/speaker/media_player.esp32-idf.yaml
Normal file
9
tests/components/speaker/media_player.esp32-idf.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
i2s_bclk_pin: GPIO27
|
||||
i2s_lrclk_pin: GPIO26
|
||||
i2s_mclk_pin: GPIO25
|
||||
i2s_dout_pin: GPIO23
|
||||
|
||||
<<: !include common-media_player.yaml
|
9
tests/components/speaker/media_player.esp32-s3-idf.yaml
Normal file
9
tests/components/speaker/media_player.esp32-s3-idf.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO2
|
||||
sda_pin: GPIO3
|
||||
i2s_bclk_pin: GPIO4
|
||||
i2s_lrclk_pin: GPIO5
|
||||
i2s_mclk_pin: GPIO6
|
||||
i2s_dout_pin: GPIO7
|
||||
|
||||
<<: !include common-media_player.yaml
|
Reference in New Issue
Block a user