蓝牙耳机上的麦克风无法使用

蓝牙耳机上的麦克风无法使用

我有一台戴尔 Inspiron 7580 笔记本电脑,运行的是 Ubuntu 20.04。我一直在尝试让我的Jaybird Tarah Pro无线耳机无法正常工作。声音输出正常,但耳机的麦克风输入不起作用。

我能够使用标准蓝牙设置在 Ubuntu 中配对耳机。但声音下的选项设置仅显示以下选项:

输出设备:

  • 扬声器 - 内置音频(笔记本电脑扬声器)
  • 耳机 - Jaybird Tarah Pro(耳机输出,工作正常)

输入设备:

  • 耳机麦克风 - 内置音频(似乎不起作用)
  • 内置麦克风 - 内置音频(可用,但使用笔记本电脑麦克风)

我是否需要安装额外的软件才能使用蓝牙麦克风?有没有办法查明蓝牙设备是否检测到麦克风配置文件?

提前致谢

编辑1

我尝试取消配对并配对我的耳机,现在在输入设备下有了一个新选项:

输入设备:

  • 耳机麦克风 - 内置音频
  • 内置麦克风 - 内置音频
  • 蓝牙输入 - Jaybird Tarah Pro

声音设置

但是我尝试选择最后一项,似乎不起作用。有声音时音量指示器不动。

关于如何修复此问题您有什么想法吗?

编辑2

的输出pactl list cards为:

Card #0
    Name: alsa_card.pci-0000_00_1f.3
    Driver: module-alsa-card.c
    Owner Module: 23
    Properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xa5418000 irq 150"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1f.3"
        sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9dc8"
        device.product.name = "Cannon Point-LP High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "0"
        device.description = "Áudio interno"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    Profiles:
        input:analog-stereo: Entrada de Estéreo analógico (sinks: 0, sources: 1, priority: 65, available: yes)
        output:analog-stereo: Saída de Estéreo analógico (sinks: 1, sources: 0, priority: 6500, available: yes)
        output:analog-stereo+input:analog-stereo: Duplex estéreo analógico (sinks: 1, sources: 1, priority: 6565, available: yes)
        output:hdmi-stereo: Saída de Digital Stereo (HDMI) (sinks: 1, sources: 0, priority: 5900, available: no)
        output:hdmi-stereo+input:analog-stereo: Saída de Digital Stereo (HDMI) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 5965, available: no)
        output:hdmi-surround: Saída de Digital Surround 5.1 (HDMI) (sinks: 1, sources: 0, priority: 800, available: no)
        output:hdmi-surround+input:analog-stereo: Saída de Digital Surround 5.1 (HDMI) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 865, available: no)
        output:hdmi-surround71: Saída de Digital Surround 7.1 (HDMI) (sinks: 1, sources: 0, priority: 800, available: no)
        output:hdmi-surround71+input:analog-stereo: Saída de Digital Surround 7.1 (HDMI) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 865, available: no)
        output:hdmi-stereo-extra1: Saída de Digital Stereo (HDMI 2) (sinks: 1, sources: 0, priority: 5700, available: no)
        output:hdmi-stereo-extra1+input:analog-stereo: Saída de Digital Stereo (HDMI 2) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 5765, available: no)
        output:hdmi-surround-extra1: Saída de Digital Surround 5.1 (HDMI 2) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround-extra1+input:analog-stereo: Saída de Digital Surround 5.1 (HDMI 2) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        output:hdmi-surround71-extra1: Saída de Digital Surround 7.1 (HDMI 2) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround71-extra1+input:analog-stereo: Saída de Digital Surround 7.1 (HDMI 2) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        output:hdmi-stereo-extra2: Saída de Digital Stereo (HDMI 3) (sinks: 1, sources: 0, priority: 5700, available: no)
        output:hdmi-stereo-extra2+input:analog-stereo: Saída de Digital Stereo (HDMI 3) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 5765, available: no)
        output:hdmi-surround-extra2: Saída de Digital Surround 5.1 (HDMI 3) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround-extra2+input:analog-stereo: Saída de Digital Surround 5.1 (HDMI 3) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        output:hdmi-surround71-extra2: Saída de Digital Surround 7.1 (HDMI 3) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround71-extra2+input:analog-stereo: Saída de Digital Surround 7.1 (HDMI 3) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        output:hdmi-stereo-extra3: Saída de Digital Stereo (HDMI 4) (sinks: 1, sources: 0, priority: 5700, available: no)
        output:hdmi-stereo-extra3+input:analog-stereo: Saída de Digital Stereo (HDMI 4) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 5765, available: no)
        output:hdmi-surround-extra3: Saída de Digital Surround 5.1 (HDMI 4) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround-extra3+input:analog-stereo: Saída de Digital Surround 5.1 (HDMI 4) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        output:hdmi-surround71-extra3: Saída de Digital Surround 7.1 (HDMI 4) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround71-extra3+input:analog-stereo: Saída de Digital Surround 7.1 (HDMI 4) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        output:hdmi-stereo-extra4: Saída de Digital Stereo (HDMI 5) (sinks: 1, sources: 0, priority: 5700, available: no)
        output:hdmi-stereo-extra4+input:analog-stereo: Saída de Digital Stereo (HDMI 5) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 5765, available: no)
        output:hdmi-surround-extra4: Saída de Digital Surround 5.1 (HDMI 5) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround-extra4+input:analog-stereo: Saída de Digital Surround 5.1 (HDMI 5) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        output:hdmi-surround71-extra4: Saída de Digital Surround 7.1 (HDMI 5) (sinks: 1, sources: 0, priority: 600, available: no)
        output:hdmi-surround71-extra4+input:analog-stereo: Saída de Digital Surround 7.1 (HDMI 5) + Entrada de Estéreo analógico (sinks: 1, sources: 1, priority: 665, available: no)
        off: Desligado (sinks: 0, sources: 0, priority: 0, available: yes)
    Active Profile: output:analog-stereo+input:analog-stereo
    Ports:
        analog-input-internal-mic: Microfone interno (priority: 8900, latency offset: 0 usec)
            Properties:
                device.icon_name = "audio-input-microphone"
            Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-surround+input:analog-stereo, output:hdmi-surround71+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3+input:analog-stereo, output:hdmi-stereo-extra4+input:analog-stereo, output:hdmi-surround-extra4+input:analog-stereo, output:hdmi-surround71-extra4+input:analog-stereo
        analog-input-headphone-mic: Microfone (priority: 8700, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "audio-input-microphone"
            Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-surround+input:analog-stereo, output:hdmi-surround71+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3+input:analog-stereo, output:hdmi-stereo-extra4+input:analog-stereo, output:hdmi-surround-extra4+input:analog-stereo, output:hdmi-surround71-extra4+input:analog-stereo
        analog-input-headset-mic: Microfone de headset (priority: 8800, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "audio-input-microphone"
            Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-surround+input:analog-stereo, output:hdmi-surround71+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3+input:analog-stereo, output:hdmi-stereo-extra4+input:analog-stereo, output:hdmi-surround-extra4+input:analog-stereo, output:hdmi-surround71-extra4+input:analog-stereo
        analog-output-speaker: Alto-falantes (priority: 10000, latency offset: 0 usec)
            Properties:
                device.icon_name = "audio-speakers"
            Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
        analog-output-headphones: Fones de ouvido (priority: 9900, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "audio-headphones"
            Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
        hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "video-display"
            Part of profile(s): output:hdmi-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-surround, output:hdmi-surround+input:analog-stereo, output:hdmi-surround71, output:hdmi-surround71+input:analog-stereo
        hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "video-display"
            Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1, output:hdmi-surround71-extra1+input:analog-stereo
        hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "video-display"
            Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2, output:hdmi-surround71-extra2+input:analog-stereo
        hdmi-output-3: HDMI / DisplayPort 4 (priority: 5600, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "video-display"
            Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3, output:hdmi-surround71-extra3+input:analog-stereo
        hdmi-output-4: HDMI / DisplayPort 5 (priority: 5500, latency offset: 0 usec, not available)
            Properties:
                device.icon_name = "video-display"
            Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-stereo-extra4+input:analog-stereo, output:hdmi-surround-extra4, output:hdmi-surround-extra4+input:analog-stereo, output:hdmi-surround71-extra4, output:hdmi-surround71-extra4+input:analog-stereo

Card #4
    Name: bluez_card.C0_28_8D_AF_C6_72
    Driver: module-bluez5-device.c
    Owner Module: 30
    Properties:
        device.description = "Jaybird Tarah Pro"
        device.string = "C0:28:8D:AF:C6:72"
        device.api = "bluez"
        device.class = "sound"
        device.bus = "bluetooth"
        device.form_factor = "headphone"
        bluez.path = "/org/bluez/hci0/dev_C0_28_8D_AF_C6_72"
        bluez.class = "0x240418"
        bluez.alias = "Jaybird Tarah Pro"
        device.icon_name = "audio-headphones-bluetooth"
    Profiles:
        a2dp_sink: Reprodução de alta fidelidade (Destino A2DP) (sinks: 1, sources: 0, priority: 40, available: yes)
        headset_head_unit: Unidade de headset (HSP/HFP) (sinks: 1, sources: 1, priority: 30, available: yes)
        off: Desligado (sinks: 0, sources: 0, priority: 0, available: yes)
    Active Profile: off
    Ports:
        headphone-output: Fones de ouvido (priority: 0, latency offset: 0 usec)
            Part of profile(s): a2dp_sink, headset_head_unit
        headphone-input: Entrada Bluetooth (priority: 0, latency offset: 0 usec)
            Part of profile(s): headset_head_unit

答案1

我在使用 Oneplus Wireless Z Bass 版本时遇到了同样的问题。PulseAudio 无法检测到我的耳机麦克风,问题是我的耳机没有 HSP 配置文件,只有 HFP 配置文件。经过 2 天的尝试,我找到了解决方案,用 Pipewire 声音服务器替换 PulseAudio,它本身支持 HSP、HFP 和 A2DP。因此无需安装任何其他实用程序,例如ofonophonesim另外,需要注意的是,即使按照所有步骤在 PulseAudio 中配置后,我的问题仍未解决ofono。所以我想出了用 PipeWire 替换 PulseAudio 的步骤。

这是我写的解决此问题的详细文章,其中的步骤我也在这里添加。您可以按照它进行操作,很可能能够解决您的问题。

未检测到蓝牙耳机麦克风

打开终端并执行以下步骤:

  1. 我们将使用 PPA 将 Pipewire 添加到 Ubuntu 20.04,该 PPA 会定期维护:

    sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
    
  2. 要更新系统中的 PPA 包,请执行以下操作:

    sudo apt update
    
  3. 安装软件包:

    sudo apt install pipewire
    
  4. Pipewire 还需要安装依赖项,否则你将面临以下问题“安装 pipewire 后蓝牙耳机无法连接”. 通过以下方式安装依赖项:

    sudo apt install libspa-0.2-bluetooth
    
  5. 现在,安装客户端库:

    sudo apt install pipewire-audio-client-libraries
    
  6. 重新加载守护进程:

    systemctl --user daemon-reload
    
  7. 禁用 PulseAudio:

    systemctl --user --now disable pulseaudio.service pulseaudio.socket
    
  8. 如果你使用的是 Ubuntu 20.04,你还需要通过以下方式“屏蔽”PulseAudio:

    systemctl --user mask pulseaudio
    

我不确定,但如果可能的话,您也可以尝试在其他版本上运行它。9
. 在 Pipewire 进行新更新后,您还需要启用pipewire-media-session-service

   systemctl --user --now enable pipewire-media-session.service
  1. 您可以确保 Pipewire 目前正在运行:

    pactl info
    

    此命令将给出以下输出,您可以在服务器名称中看到:

    PulseAudio (on PipeWire 0.3.28)
    

    现在一切应该已经正常,您可以看到您的麦克风了。

如果没有出现,请尝试通过以下命令重新启动 Pipewire:

systemctl --user restart pipewire

如果仍然没有显示您的麦克风,您可以尝试重新启动一次,然后移除并再次配对您的蓝牙设备,以检查它是否正常工作。

我希望我已经帮助您解决了您的问题。

如果您想回滚我们所做的所有更改,您可以使用以下命令:

systemctl --user unmask pulseaudio
systemctl --user --now enable pulseaudio.service pulseaudio.socket

答案2

问题是 PulseAudio 对 HSP/HFP(允许麦克风工作的蓝牙配置文件)的支持不是很好。

最近,对 HSP/HFP 的适当支持已合并:添加对蓝牙 A2DP 编解码器和编解码器切换的支持。但是,在 PulseAudio 的新版本发布并打包到 Ubuntu 之前,似乎唯一的选择是按照链接中的说明自行构建。我试过了,但没有成功。

更新:我刚刚尝试使用 Ubuntu 21.04,但似乎仍然不起作用。我还需要测试的另一种可能性是 PipeWire,它是未来的 PulseAudio 替代品。

答案3

我相信蓝牙麦克风问题已在 22.04 中得到修复。我正在运行几台装有 Lubuntu 20.04 的笔记本电脑和一台装有 22.04 的笔记本电脑。运行 Lubuntu 22.04 的笔记本电脑似乎可以与蓝牙耳机配合使用。还有人可以证实这一点吗?升级后,我将在 22.04 上测试另一台笔记本电脑,并确认它也可以在那里工作。

相关内容