Add audio streaming from external devices via Bluetooth A2DP sink or WiFi hotspot (WIRED mode only)#1
Conversation
Co-authored-by: Doezer <11655673+Doezer@users.noreply.github.com>
|
@copilot It won't work because the phone that uses car OS bluetooth is already used by the car |
Co-authored-by: Doezer <11655673+Doezer@users.noreply.github.com>
You're absolutely correct! Fixed in commit d02ac64. The feature now only enables in WIRED mode (USB connection) where Bluetooth is free. In WIRELESS mode, Bluetooth is already occupied by the car connection, so it can't simultaneously act as an audio receiver. Alternatives considered for WIRELESS mode:
Current solution: Feature only works in WIRED mode. Users who want audio sharing in wireless mode should either switch to wired Android Auto or use third-party apps (SoundWire, AudioRelay, etc.). Documentation updated to clarify this limitation in README, FAQ, and CHANGELOG. |
|
@copilot Even in wired mode, the bluetooth is used for audio connection between the car and the phone |
Co-authored-by: Doezer <11655673+Doezer@users.noreply.github.com>
You're absolutely right! Added WiFi hotspot as an alternative in commit c2839f1. Issue: Even in wired mode, Bluetooth is often used for car audio/calls, preventing A2DP sink. Solution: New WiFi hotspot option (
Config example: ENABLE_WIFI_AUDIO_HOTSPOT=1
WIFI_AUDIO_HOTSPOT_SSID="CarOS-Audio"
WIFI_AUDIO_HOTSPOT_PASSWORD="caros123"Both methods available - users can choose based on what works for their setup. WiFi hotspot recommended since it avoids Bluetooth conflicts. |
Enables another Android phone to stream audio through Android Auto to car speakers. Useful for passengers sharing music control during drives.
Two Streaming Methods Available
Method 1: Bluetooth A2DP Sink
When enabled (
ENABLE_BT_AUDIO_SINK=1), the CarOS device receives audio via Bluetooth.Limitation: May not work if Bluetooth is used for car audio/calls even in wired mode (common in many vehicles).
Method 2: WiFi Hotspot (Recommended)
When enabled (
ENABLE_WIFI_AUDIO_HOTSPOT=1), the CarOS device creates a WiFi hotspot for audio streaming.Advantages:
Implementation
Configuration (
caros_config.sh)ENABLE_BT_AUDIO_SINK- Bluetooth A2DP sink option (default: disabled)ENABLE_WIFI_AUDIO_HOTSPOT- WiFi hotspot option (default: disabled)WIFI_AUDIO_HOTSPOT_SSID- Customizable hotspot name (default: "CarOS-Audio")WIFI_AUDIO_HOTSPOT_PASSWORD- Customizable hotspot password (default: "caros123")Core functionality (
service.sh)enable_bt_audio_sink()/disable_bt_audio_sink(): Bluetooth A2DP sink managementenable_wifi_audio_hotspot()/disable_wifi_audio_hotspot(): WiFi hotspot managementPermissions (
grant_permissions.sh)Technical Details
Bluetooth A2DP Sink:
WiFi Hotspot:
Audio flow:
Why Two Methods?
Even in WIRED mode (USB connection), Bluetooth is often used by the car for audio and phone calls. This prevents the phone from acting as a Bluetooth A2DP sink simultaneously. The WiFi hotspot method provides a reliable alternative that works when Bluetooth is occupied.
Why WIRED Mode Only?
In WIRELESS mode, both Bluetooth and WiFi are typically used by Android Auto:
Neither interface is available for audio streaming in wireless mode.
Device Compatibility
Bluetooth method:
WiFi hotspot method:
Both features disabled by default for maximum compatibility.
Documentation
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.