无法通过蓝牙将音频发送到 Amazon Echo

无法通过蓝牙将音频发送到 Amazon Echo

我有一台 Amazon Echo 和一台运行 Ubuntu 16.04.1 的笔记本电脑。我可以通过蓝牙成功配对设备(Echo 显示Now connected to <my machine's name>),但当我测试声音时,什么也听不到。音量足够高,其他设备可以正常连接到 Echo。

Echo 没有声音

输出如下dmesg

$ dmesg | grep -i blue
[   12.419477] Bluetooth: Core ver 2.21
[   12.419491] Bluetooth: HCI device and connection manager initialized
[   12.419494] Bluetooth: HCI socket layer initialized
[   12.419497] Bluetooth: L2CAP socket layer initialized
[   12.419502] Bluetooth: SCO socket layer initialized
[   12.473236] Bluetooth: hci0: read Intel version: 370810011003110e00
[   12.480889] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[   12.839251] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[   13.386452] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.386456] Bluetooth: BNEP filters: protocol multicast
[   13.386460] Bluetooth: BNEP socket layer initialized
[   16.473284] Bluetooth: RFCOMM TTY layer initialized
[   16.473292] Bluetooth: RFCOMM socket layer initialized
[   16.473297] Bluetooth: RFCOMM ver 1.11
[10944.651128] Bluetooth: hci0: read Intel version: 370810011003110e00
[10944.651133] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[10944.977821] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[24061.878085] Bluetooth: hci0: read Intel version: 370810011003110e00
[24061.887184] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[24062.211121] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[24072.874829] Bluetooth: hci0: read Intel version: 370810011003110e00
[24072.874835] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[24073.196858] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[45209.076985]  iwlwifi videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 serio_raw videobuf2_core btrtl btbcm btintel input_leds bluetooth snd_hda_codec_realtek(OE) snd_hda_codec_generic(OE) snd_hda_codec_hdmi(OE) v4l2_common snd_seq_midi joydev cfg80211 snd_seq_midi_event videodev media snd_hda_intel(OE) snd_hda_codec(OE) snd_hda_core(OE) snd_hwdep lpc_ich snd_pcm snd_rawmidi shpchp snd_seq mei_me mei snd_seq_device snd_timer snd elan_i2c int3403_thermal 8250_fintek soundcore 8250_dw i2c_designware_platform dw_dmac snd_soc_sst_acpi i2c_designware_core dell_smo8800 dw_dmac_core processor_thermal_device spi_pxa2xx_platform int3402_thermal int3400_thermal int340x_thermal_zone acpi_thermal_rel intel_soc_dts_iosf dell_rbtn acpi_als mac_hid acpi_pad kfifo_buf industrialio parport_pc ppdev lp parport autofs4
[55174.636122] Bluetooth: hci0: read Intel version: 370810011003110e00
[55174.646073] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[55174.970198] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[55181.295879] Bluetooth: hci0: read Intel version: 370810011003110e00
[55181.295922] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[55181.670006] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[56551.946597] Bluetooth: hci0: read Intel version: 370810011003110e00
[56551.955475] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[56552.282610] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[98502.038807] Bluetooth: hci0: read Intel version: 370810011003110e00
[98502.038816] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[98502.356833] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[107908.657215] Bluetooth: hci0: read Intel version: 370810011003110e00
[107908.657298] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[107908.985251] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[109042.464364] Bluetooth: hci0: read Intel version: 370810011003110e00
[109042.464372] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[109042.782838] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[109052.807963] Bluetooth: hci0: read Intel version: 370810011003110e00
[109052.807968] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[109053.127969] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[127570.876446] Bluetooth: hci0: read Intel version: 370810011003110e00
[127570.953632] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[127571.270715] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated

答案1

我也遇到了这个问题。可以与其他蓝牙扬声器配对并发送音频。可以与 Amazon Echo 配对,但听不到任何声音。我使用的是 Ubuntu 16.04 LTS (Xenial),它是从今天的 15.10 (Wily) 升级而来的,而 15.10 又是从 14.04 LTS (Trusty) 升级而来的。(我提到这一点是因为我想知道问题是否可能特定于升级路径而不是全新安装。)

我认为问题在于脉冲音频将设备配对为耳机,而不仅仅是扬声器。这需要亚德客,而对我来说,这似乎就是发生故障的地方。

例如,当我与 Bose SoundLink II(自 14.04 版开始可用)配对时,消息显示:

Feb 28 10:57:04 n1 bluetoothd[1025]: /org/bluez/hci0/dev_00_0C_8A_58_F6_CA/fd2: fd(22) ready
Feb 28 10:57:04 n1 bluetoothd[1025]: No pending request, ignoring message
Feb 28 10:57:04 n1 kernel: [ 1053.711796] input: 00:0C:8A:58:F6:CA as /devices/virtual/input/input20

然而,当我与 Amazon Echo 配对时,消息报告:

Feb 28 10:59:05 n1 bluetoothd[1025]: a2dp-source profile connect failed for 50:F5:DA:A6:3F:EA: Device or resource busy
Feb 28 10:59:05 n1 bluetoothd[1025]: /org/bluez/hci0/dev_50_F5_DA_A6_3F_EA/fd3: fd(22) ready
Feb 28 10:59:05 n1 kernel: [ 1174.849178] input: 50:F5:DA:A6:3F:EA as /devices/virtual/input/input21

上述输出中的关键行是第一行,其中 a2dp 报告设备或资源正忙。

我四处寻找解决办法,但至今没有找到。MrUser 在讨论中提出的答案位于问题 #440386这表明问题可能与“......”有关a2dp 已从 BlueZ 堆栈移出并移入 GStreamer“并且他自己编译 pulseaudio 5.x 取得了一些成功。但是,Ubuntu 16.04.2 LTS 使用的是 pulseaudio 8.0,而不是 5.x,而且上面的错误消息表明我的系统上有 pulseaudio支持 a2dp,但由于某种原因,a2dp 在 bluetoothd 连接设备后无法访问该设备。

这让我相信问题可能是由于权限或访问存在问题,但我不能确定。

讨论见问题 #763539其他地方建议切换到 HSP/HFP 模式,然后再切换回 A2DP 模式,这样问题就解决了,但那适用于 KDE(即 Kubuntu)。我尝试使用 @pylover 提供的 a2dp.py 脚本,该脚本已发布在那里。它运行良好,但 a2dp“设备或资源繁忙”错误仍然出现,问题仍未解决。

如果有时间,我会打开蓝牙调试(如Ubuntu 的 Wiki) 并汇报我的发现。我的感觉是,这个问题是可以修复的,而且问题很简单,但准确追踪故障点并进行纠正并非易事。

如果其他人对这个问题和可能的解决方案有见解,我将非常感激。

答案2

我发现的解决方案是在声音设置中。起初,我可以连接,但没有声音。在声音设置中,我将“输出设备”下拉框更改为默认设置,然后手动返回到我的 Echo。YouTube 视频立即出现。

相关内容