特殊:Badtitle/NS100:BluetoothAudio/zh:修订间差异
第52行: | 第52行: | ||
你会听到Ubuntu登录音。 | 你会听到Ubuntu登录音。 | ||
=== | === 配置在每次启动时自动运行btsco === | ||
<ol><li> | <ol><li>打开 系统 -> 首选项 -> 启动应用程序 | ||
</li><li> | </li><li>点击“添加”。 | ||
</li><li> | </li><li>输入名称 "BT Sco Headset audio"。 | ||
</li><li> | </li><li>输入命令 '/usr/bin/btsco -r -f 00:07:a4:b8:f9:77' | ||
</li><li> | </li><li>点击添加来应用设置</li></ol> | ||
==== | ==== 设置耳机为你的默认alsa音频设备 ==== | ||
<pre><nowiki> | <pre><nowiki> | ||
asoundconf set-default-card Headset | asoundconf set-default-card Headset | ||
</nowiki></pre> | </nowiki></pre> | ||
这会在你的.asoundrc 文件夹中创建适当的条目。此设置将应用于所有用户。 | |||
==== | ==== 蓝牙Sco配置的GUI工具 ==== | ||
一个配置你的蓝牙耳机的替代方法就是使用Gbtsco,一个简单的GUI就能实现我们前面所述的所有辛苦工作。 | |||
http://www.stgraber.org/2007/05/20/gbtsco-already-release-02/ | http://www.stgraber.org/2007/05/20/gbtsco-already-release-02/ | ||
请考虑此时btsco和snd-bt-sco是否被新的bluez发展所支持,但btsco将一直有效直至被一个新的解决方案所取代。更多信息在http://www.bluez.org/ | |||
=== Installing High quality "a2d" audio drivers === | === Installing High quality "a2d" audio drivers === | ||
The bluetooth-alsa package is available since Ubuntu 7.10 (Gutsy). | The bluetooth-alsa package is available since Ubuntu 7.10 (Gutsy). |
2010年4月17日 (六) 17:19的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BluetoothAudio }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/af | • {{#if: UbuntuHelp:BluetoothAudio|Afrikaans| [[::BluetoothAudio/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ar | • {{#if: UbuntuHelp:BluetoothAudio|العربية| [[::BluetoothAudio/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/az | • {{#if: UbuntuHelp:BluetoothAudio|azərbaycanca| [[::BluetoothAudio/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/bcc | • {{#if: UbuntuHelp:BluetoothAudio|جهلسری بلوچی| [[::BluetoothAudio/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/bg | • {{#if: UbuntuHelp:BluetoothAudio|български| [[::BluetoothAudio/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/br | • {{#if: UbuntuHelp:BluetoothAudio|brezhoneg| [[::BluetoothAudio/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ca | • {{#if: UbuntuHelp:BluetoothAudio|català| [[::BluetoothAudio/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/cs | • {{#if: UbuntuHelp:BluetoothAudio|čeština| [[::BluetoothAudio/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/de | • {{#if: UbuntuHelp:BluetoothAudio|Deutsch| [[::BluetoothAudio/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/el | • {{#if: UbuntuHelp:BluetoothAudio|Ελληνικά| [[::BluetoothAudio/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/es | • {{#if: UbuntuHelp:BluetoothAudio|español| [[::BluetoothAudio/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/fa | • {{#if: UbuntuHelp:BluetoothAudio|فارسی| [[::BluetoothAudio/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/fi | • {{#if: UbuntuHelp:BluetoothAudio|suomi| [[::BluetoothAudio/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/fr | • {{#if: UbuntuHelp:BluetoothAudio|français| [[::BluetoothAudio/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/gu | • {{#if: UbuntuHelp:BluetoothAudio|ગુજરાતી| [[::BluetoothAudio/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/he | • {{#if: UbuntuHelp:BluetoothAudio|עברית| [[::BluetoothAudio/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/hu | • {{#if: UbuntuHelp:BluetoothAudio|magyar| [[::BluetoothAudio/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/id | • {{#if: UbuntuHelp:BluetoothAudio|Bahasa Indonesia| [[::BluetoothAudio/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/it | • {{#if: UbuntuHelp:BluetoothAudio|italiano| [[::BluetoothAudio/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ja | • {{#if: UbuntuHelp:BluetoothAudio|日本語| [[::BluetoothAudio/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ko | • {{#if: UbuntuHelp:BluetoothAudio|한국어| [[::BluetoothAudio/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ksh | • {{#if: UbuntuHelp:BluetoothAudio|Ripoarisch| [[::BluetoothAudio/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/mr | • {{#if: UbuntuHelp:BluetoothAudio|मराठी| [[::BluetoothAudio/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ms | • {{#if: UbuntuHelp:BluetoothAudio|Bahasa Melayu| [[::BluetoothAudio/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/nl | • {{#if: UbuntuHelp:BluetoothAudio|Nederlands| [[::BluetoothAudio/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/no | • {{#if: UbuntuHelp:BluetoothAudio|norsk| [[::BluetoothAudio/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/oc | • {{#if: UbuntuHelp:BluetoothAudio|occitan| [[::BluetoothAudio/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/pl | • {{#if: UbuntuHelp:BluetoothAudio|polski| [[::BluetoothAudio/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/pt | • {{#if: UbuntuHelp:BluetoothAudio|português| [[::BluetoothAudio/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ro | • {{#if: UbuntuHelp:BluetoothAudio|română| [[::BluetoothAudio/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/ru | • {{#if: UbuntuHelp:BluetoothAudio|русский| [[::BluetoothAudio/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/si | • {{#if: UbuntuHelp:BluetoothAudio|සිංහල| [[::BluetoothAudio/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/sq | • {{#if: UbuntuHelp:BluetoothAudio|shqip| [[::BluetoothAudio/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/sr | • {{#if: UbuntuHelp:BluetoothAudio|српски / srpski| [[::BluetoothAudio/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/sv | • {{#if: UbuntuHelp:BluetoothAudio|svenska| [[::BluetoothAudio/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/th | • {{#if: UbuntuHelp:BluetoothAudio|ไทย| [[::BluetoothAudio/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/tr | • {{#if: UbuntuHelp:BluetoothAudio|Türkçe| [[::BluetoothAudio/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/vi | • {{#if: UbuntuHelp:BluetoothAudio|Tiếng Việt| [[::BluetoothAudio/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/yue | • {{#if: UbuntuHelp:BluetoothAudio|粵語| [[::BluetoothAudio/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/zh | • {{#if: UbuntuHelp:BluetoothAudio|中文| [[::BluetoothAudio/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/zh-hans | • {{#if: UbuntuHelp:BluetoothAudio|中文(简体)| [[::BluetoothAudio/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothAudio | UbuntuHelp:BluetoothAudio | {{#if: | :}}BluetoothAudio/zh}}/zh-hant | • {{#if: UbuntuHelp:BluetoothAudio|中文(繁體)| [[::BluetoothAudio/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BluetoothAudio|:BluetoothAudio/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BluetoothAudio/zh/zh | | {{#ifexist: BluetoothAudio/zh/zh | | {{#ifeq: {{#titleparts:BluetoothAudio/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BluetoothAudio/zh|1|-1|}} | zh | | }}
蓝牙音频概况
使用蓝牙时有两种不同的音频配置方案,使用哪一个取决于你将如何使用你的耳机以及你如何计划使用它。 "sco" 音频配置是一个低品质、低延时的连接方案。音质近似于无线电话。糟糕的音质在听音乐的时候显得尤为明显。"a2d" 音频配置是一个高品质的压缩连接,并且提供出色的音频品质。截止到2007年7月13日a2d音频驱动无法通过apt获取,而是需要手动编译安装。这是首选的蓝牙音频配置方案。
安装低品质"sco" 音频驱动程序
注意:原作者已经停止维护此软件
载入前提:
sudo apt-get install bluez-btsco sudo modprobe snd-bt-sco
注意:如果你喜欢让这个模块在启动时被自动加载,运行'gksu gedit /etc/modules' 并加入一行:'snd-bt-sco'。
确定耳机的蓝牙地址
- 将设备设置为“配对”模式。这个过程会因耳机不同而所有差异,但通常需要按住电源键10-15秒。
- 打开一个终端运行'hcitool scan'
""注意:我使用的是我的地址'00:07:a4:b8:f9:77'来作为例子。"" ""在余下步骤中,请替换成用从hcitool scan输出的您的地址。""
- 寻找类似这样的输出
ellie@ellie-laptop:~$ hcitool scan Scanning ... 00:07:A4:B8:F0:77 Motorola HT820 ellie@ellie-laptop:~$
- 编辑 /etc/bluetooth/hcid.conf (gksu gedit /etc/bluetooth/hcid.conf ) 并添加这样一段
device 00:07:A4:B8:F9:77 { name "Motorola HT820" auth enable; encrypt enable; }
- 重启蓝牙服务
sudo /etc/init.d/bluetooth restart
首次启动"sco"驱动
- 像前面一样将耳机设置为“配对”模式
- 打开一个终端并运行'btsco -v 00:07:a4:b8:f9:77'
- Gnome蓝牙管理器会向你询问配对的pin码。通常是0000或者1234
测试"sco"驱动
aplay -B 1000000 -D plughw:Headset /usr/share/sounds/login.wav
你会听到Ubuntu登录音。
配置在每次启动时自动运行btsco
- 打开 系统 -> 首选项 -> 启动应用程序
- 点击“添加”。
- 输入名称 "BT Sco Headset audio"。
- 输入命令 '/usr/bin/btsco -r -f 00:07:a4:b8:f9:77'
- 点击添加来应用设置
设置耳机为你的默认alsa音频设备
asoundconf set-default-card Headset
这会在你的.asoundrc 文件夹中创建适当的条目。此设置将应用于所有用户。
蓝牙Sco配置的GUI工具
一个配置你的蓝牙耳机的替代方法就是使用Gbtsco,一个简单的GUI就能实现我们前面所述的所有辛苦工作。 http://www.stgraber.org/2007/05/20/gbtsco-already-release-02/ 请考虑此时btsco和snd-bt-sco是否被新的bluez发展所支持,但btsco将一直有效直至被一个新的解决方案所取代。更多信息在http://www.bluez.org/
Installing High quality "a2d" audio drivers
The bluetooth-alsa package is available since Ubuntu 7.10 (Gutsy).
Using "a2d" audio drivers
Pairing a headset using the Bluetooth Manger works as designed through the GUI, however routing sound to the newly paired headset is not possible using Sound Preferences (found at System > Preferences > Sound Preferences). In the Sound Preferences dialog under Devices > Music and Movies > Sound Playback you should be able to pick the paired bluetooth headset. However, the headset does not appear in the list of options. To direct sound output to the headset open a terminal window and enter the following:
gconftool -t string -s /system/gstreamer/0.10/default/musicaudiosink "sbcenc ! a2dpsink device=XX:XX:XX:XX:XX:XX"
Where XX:XX:XX:XX:XX:XX is the MAC address of the headset. After executing this command you can reopen the Sound Preferences window and see under Devices > Music and Movies > Sound Playback that the field is now blank (your device can not be represented because the headset isn't a available option in the drop down list). To redirect the sound back to the computer's speakers select Autodetect for Devices > Music and Movies > Sound Playback. You will have to restart Rhythmbox each time you make a change. This information was taken from http://wiki.bluez.org/wiki/HOWTO/AudioDevices.
Troubleshooting
The BluetoothSkype; page has additional information for configuring the new driver. See Contact/troubleshooting for troubleshooting information. There is additional information for audio troubleshooting at BluetoothPulseaudioTroubleshooting If you experience drop in audio while you use your bluetooth mouse, change this options in /etc/bluetooth/hcid.conf, device section: Change “lm accept;” to “lm master;” and change “lp rswitch,hold,sniff,park;” to “lp hold,sniff,park;”. Then restart bluetooth (/etc/init.d/bluetooth force-reload).