已成功連接藍牙音箱,但如何直接發出聲音?

已成功連接藍牙音箱,但如何直接發出聲音?

我在 Lenovo Thinkpad T430 筆記型電腦上運行 Kubuntu 13.10。

我有一個藍牙音箱。

經過大量故障排除後,我設法連接到揚聲器。bt-device報告:

$ bt-device -l
Added devices:
[Samsung] W_Audio (5C:F6:DC:88:05:62)

$ bt-device -i 5C:F6:DC:88:05:62
[5C:F6:DC:88:05:62]
  Name: [Samsung] W_Audio
  Alias: [Samsung] W_Audio [rw]
  Address: 5C:F6:DC:88:05:62
  Icon: audio-card
  Class: 0x240404
  Paired: 1
  Trusted: 1 [rw]
  Blocked: 0 [rw]
  Connected: 1
  UUIDs: [AudioSink, AVRemoteControlTarget, AVRemoteControl]

當我連接到揚聲器時,它會播放歡迎聲音。當我單擊藍牙管理器中的“音訊接收器”(我認為是 BlueMon)時,揚聲器會播放另一種聲音,並且藍牙管理器中會出現“成功”訊息。

但藍牙音訊不會出現在設定中的任何位置。沒有將聲音定向到揚聲器的選項。所有聲音都來自筆記型電腦揚聲器,藍牙揚聲器靜音。

我安裝了pulseaudio和pavucontrol(以及一堆其他pulseaudio和藍牙相關的軟體包)。 「輸出設備」標籤上的 Pavucontrol 僅顯示主音訊設備,但根據網路上的指南,藍牙音訊應該會出現在那裡。

那麼...一旦我連接了藍牙揚聲器,我如何在那裡發出聲音?

一些可能相關的轉儲:

$ pacmd list-sinks
Welcome to PulseAudio! Use "help" for usage information.
>>> 1 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: 
        priority: 9959
        volume: 0:  86% 1:  86%
                0: -3,93 dB 1: -3,93 dB
                balance 0,00
        base volume: 100%
                     0,00 dB
        volume steps: 65537
        muted: no
        current latency: 5,62 ms
        max request: 1 KiB
        max rewind: 64 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 3
        configured latency: 5,80 ms; range is 0,50 .. 371,52 ms
        card: 0 <alsa_card.pci-0000_00_1b.0>
        module: 5
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC3202 Analog"
                alsa.id = "ALC3202 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf2530000 irq 48"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C210 Series Chipset Family High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Intel PantherPoint HDMI"
                alsa.components = "HDA:10ec0269,17aa21f3,00100203 HDA:80862806,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>
$ pacmd list-sources
Welcome to PulseAudio! Use "help" for usage information.
>>> 2 source(s) available.
    index: 0
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: 
        priority: 1950
        volume: 0: 100% 1: 100%
                0: 0,00 dB 1: 0,00 dB
                balance 0,00
        base volume: 100%
                     0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 64 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 2
        linked by: 2
        configured latency: 20,00 ms; range is 0,50 .. 371,52 ms
        monitor_of: 0
        card: 0 <alsa_card.pci-0000_00_1b.0>
        module: 5
        properties:
                device.description = "Monitor of Built-in Audio Analog Stereo"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf2530000 irq 48"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C210 Series Chipset Family High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
  * index: 1
        name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: 
        priority: 9959
        volume: 0:   0% 1:   0%
                0: -inf dB 1: -inf dB
                balance 0,00
        base volume:  10%
                     -60,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        configured latency: 20,00 ms; range is 0,50 .. 341,33 ms
        card: 0 <alsa_card.pci-0000_00_1b.0>
        module: 5
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC3202 Analog"
                alsa.id = "ALC3202 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf2530000 irq 48"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C210 Series Chipset Family High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Intel PantherPoint HDMI"
                alsa.components = "HDA:10ec0269,17aa21f3,00100203 HDA:80862806,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-input-microphone-internal: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-microphone-dock: Dock Microphone (priority 7800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-microphone: Microphone (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
        active port: <analog-input-microphone-internal>

答案1

要在 Pulse Audio 中啟用藍牙音訊裝置發現功能,我們需要確保已載入pulseaudio 的藍牙套件(脈衝音訊模組藍牙 安裝pulsaudio-module-bluetooth應該預設安裝)。

模組藍牙發現then 負責將藍牙音訊設備新增為已知音訊裝置的接收器(或 HSP/電話模式下的來源)。

要載入這個模組,我們可以發出

pactl load-module module-bluetooth-discover

為了始終在pulseaudio聲音伺服器啟動時載入此模組,我們將以下幾行新增至我們的/etc/pulse/default.pa(或我們的自訂基於使用者的~/.pulse/default.pa~/.config/pulse/default.pa相應的,如果此檔案存在的話):

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

答案2

我有同樣的問題。在https://wiki.archlinux.org/index.php/Bluetooth_headset我找到了這個:

注意:設備預設情況下可能處於關閉狀態。在 pavucontrol 的「設定」標籤中選擇其音訊設定檔(OFF、A2DP、HFP)。

選擇A2DP後有聲音。

相關內容