espressif / esp-adf

Espressif Audio Development Framework
Other
1.53k stars 672 forks source link

pipeline_bt_sink Can I control the volume? (AUD-5663) #1263

Open hyzgit opened 1 week ago

hyzgit commented 1 week ago

pipeline_a2dp_sink_stream works, but it does not support getting song information such as lyrics.

hbler99 commented 1 week ago

Create input_key_service is an effective way to solve it, please refer
https://github.com/espressif/esp-adf/blob/e27cd5262986dbf93785d44fb71dfa854b8e9763/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c#L143 https://github.com/espressif/esp-adf/blob/e27cd5262986dbf93785d44fb71dfa854b8e9763/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c#L42

hyzgit commented 1 week ago

Create input_key_service is an effective way to solve it, please refer

https://github.com/espressif/esp-adf/blob/e27cd5262986dbf93785d44fb71dfa854b8e9763/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c#L143

https://github.com/espressif/esp-adf/blob/e27cd5262986dbf93785d44fb71dfa854b8e9763/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c#L42

This can only adjust the volume of the local decoding chip, and cannot control the volume of the Bluetooth audio source (such as a mobile phone)