特殊:Badtitle/NS100:BluetoothAudio/zh:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Linuxfree留言 | 贡献
无编辑摘要
Linuxfree留言 | 贡献
无编辑摘要
第2行: 第2行:
{{From|https://help.ubuntu.com/community/BluetoothAudio}}
{{From|https://help.ubuntu.com/community/BluetoothAudio}}
{{Languages|UbuntuHelp:BluetoothAudio}}
{{Languages|UbuntuHelp:BluetoothAudio}}
===
= 蓝牙音频概况 =
=== 蓝牙音频概况 ===
 
===  ===
===


There are two different Audio profiles implemented in Bluetooth, which one to use depends on how you will use your headset and how you plan to use it. The "sco" audio profile is a low quality, low latency connection. The sound quality is comparable to a cell phone. The poor sound quality is very noticeable when listening to music. The "a2d" audio profile is a high quality compressed connection, and provides excellent audio quality. As of July 13, 2007 the a2d audio driver is not available via apt, and requires manual compiling for installation. This is the preferred audio configuration for Bluetooth.
There are two different Audio profiles implemented in Bluetooth, which one to use depends on how you will use your headset and how you plan to use it. The "sco" audio profile is a low quality, low latency connection. The sound quality is comparable to a cell phone. The poor sound quality is very noticeable when listening to music. The "a2d" audio profile is a high quality compressed connection, and provides excellent audio quality. As of July 13, 2007 the a2d audio driver is not available via apt, and requires manual compiling for installation. This is the preferred audio configuration for Bluetooth.


=== Installing Low quality "sco" audio drivers ===
=== Installing Low quality "sco" audio drivers ===
Note: This software is no longer maintained by the original authors
 
Note: This software is no longer maintained by the original authors
 
===== Loading Prerequisites: =====
===== Loading Prerequisites: =====
sudo apt-get install bluez-btsco
sudo apt-get install bluez-btsco
===== Loading the btsco module. =====
===== Loading the btsco module. =====
sudo modprobe snd-bt-sco
 
Note: If you prefer this module be loaded automatically at boot, run 'gksu gedit /etc/modules' and add a line for 'snd-bt-sco'.
sudo modprobe snd-bt-sco Note: If you prefer this module be loaded automatically at boot, run 'gksu gedit /etc/modules' and add a line for 'snd-bt-sco'.
 
===== Determine the BT Address of the headset. =====
===== Determine the BT Address of the headset. =====
<ol><li>Put the device into "Pairing" mode.  This procedure varies by headset, but usually involves holding down the power button for 10-15 seconds.
</li><li>Open a terminal and run 'hcitool scan'</li></ol>


""Note:  I am using my address '00:07:a4:b8:f9:77' for this example.""
# Put the device into "Pairing" mode. This procedure varies by headset, but usually involves holding down the power button for 10-15 seconds.
""Please substitute your address from the hcitool scan output for the remaining steps.""
# Open a terminal and run 'hcitool scan'
<ol><li>Look for output like this.</li></ol>


ellie@ellie-laptop:~$ hcitool scan
""Note: I am using my address '00:07:a4:b8:f9:77' for this example."" ""Please substitute your address from the hcitool scan output for the remaining steps.""
Scanning ...
00:07:A4:B8:F0:77       Motorola HT820
ellie@ellie-laptop:~$
<ol><li>Edit  /etc/bluetooth/hcid.conf (gksu gedit  /etc/bluetooth/hcid.conf ) and add a section like this</li></ol>


device 00:07:A4:B8:F9:77 {
# Look for output like this.
name "Motorola HT820"
 
auth enable;
ellie@ellie-laptop:~$ hcitool scan Scanning ... 00:07:A4:B8:F0:77 Motorola HT820 ellie@ellie-laptop:~$
encrypt enable;
 
}
# Edit /etc/bluetooth/hcid.conf (gksu gedit /etc/bluetooth/hcid.conf ) and add a section like this
<ol><li>Restart Bluetooth services (sudo /etc/init.d/bluetooth restart)</li></ol>
 
device 00:07:A4:B8:F9:77 { name "Motorola HT820" auth enable; encrypt enable; }
 
# Restart Bluetooth services (sudo /etc/init.d/bluetooth restart)


===== Starting the "sco" driver for the first time. =====
===== Starting the "sco" driver for the first time. =====
<ol><li>Place the Headset into "pairing" mode as above.
 
</li><li>Open a terminal and run 'btsco -v 00:07:a4:b8:f9:77'
# Place the Headset into "pairing" mode as above.
</li><li>This should cause the gnome bluetooth manager to ask you for a pin number to pair. This is usually 0000 or 1234</li></ol>
# Open a terminal and run 'btsco -v 00:07:a4:b8:f9:77'
# This should cause the gnome bluetooth manager to ask you for a pin number to pair. This is usually 0000 or 1234


===== Testing the "sco" driver. =====
===== Testing the "sco" driver. =====
aplay -B 1000000 -D plughw:Headset /usr/share/sounds/login.wav
 
You should hear the Ubuntu Login sound.
aplay -B 1000000 -D plughw:Headset /usr/share/sounds/login.wav You should hear the Ubuntu Login sound.
 
===== Configuring btsco to run automatically at each boot. =====
===== Configuring btsco to run automatically at each boot. =====
<ol><li>Open System -> Preferences -> Sessions and select "startup Programs"
 
</li><li>Click New.
# Open System -&gt; Preferences -&gt; Sessions and select "startup Programs"
</li><li>Enter "BT Sco Headset audio" for the Name.
# Click New.
</li><li>Enter '/usr/bin/btsco -r -f 00:07:a4:b8:f9:77'
# Enter "BT Sco Headset audio" for the Name.
</li><li>Click Ok and Apply</li></ol>
# Enter '/usr/bin/btsco -r -f 00:07:a4:b8:f9:77'
# Click Ok and Apply


===== Setting the headset as your default alsa audio device. =====
===== Setting the headset as your default alsa audio device. =====
asoundconf set-default-card Headset
 
This will create the appropriate entries in your .asoundrc file. This setting is per-user.
asoundconf set-default-card Headset This will create the appropriate entries in your .asoundrc file. This setting is per-user.
 
=== Installing High quality "a2d" audio drivers ===
=== Installing High quality "a2d" audio drivers ===
See [[http://bluetooth-alsa.sf.net/build.html new build docs]] for information on these drivers.
 
There is a bluetooth-alsa package in the testing Debian apt repository, perhaps we can port it for gutsy?
See [[http://bluetooth-alsa.sf.net/build.html new build docs]] for information on these drivers. There is a bluetooth-alsa package in the testing Debian apt repository, perhaps we can port it for gutsy?
 
=== Troubleshooting ===
=== Troubleshooting ===
The [[UbuntuHelp:BluetoothSkype|BluetoothSkype]]; page has additional information for configuring the new driver.
 
See [[http://bluetooth-alsa.sf.net/contact.html Contact/troubleshooting]] for troubleshooting information.
The [[UbuntuHelp:BluetoothSkype|BluetoothSkype]]; page has additional information for configuring the new driver. See [[http://bluetooth-alsa.sf.net/contact.html Contact/troubleshooting]] for troubleshooting information.
 
----
----
[[category:CategoryBluetooth]] [[category:CategoryAudio]]


[[category:UbuntuHelp]]
[[Category:CategoryBluetooth]] [[Category:CategoryAudio]] [[Category:UbuntuHelp]]

2008年4月18日 (五) 15:34的版本

{{#ifexist: :BluetoothAudio/zh/zh | | {{#ifexist: BluetoothAudio/zh/zh | | {{#ifeq: {{#titleparts:BluetoothAudio/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BluetoothAudio/zh|1|-1|}} | zh | | }}

蓝牙音频概况

There are two different Audio profiles implemented in Bluetooth, which one to use depends on how you will use your headset and how you plan to use it. The "sco" audio profile is a low quality, low latency connection. The sound quality is comparable to a cell phone. The poor sound quality is very noticeable when listening to music. The "a2d" audio profile is a high quality compressed connection, and provides excellent audio quality. As of July 13, 2007 the a2d audio driver is not available via apt, and requires manual compiling for installation. This is the preferred audio configuration for Bluetooth.

Installing Low quality "sco" audio drivers

Note: This software is no longer maintained by the original authors

Loading Prerequisites:

sudo apt-get install bluez-btsco

Loading the btsco module.

sudo modprobe snd-bt-sco Note: If you prefer this module be loaded automatically at boot, run 'gksu gedit /etc/modules' and add a line for 'snd-bt-sco'.

Determine the BT Address of the headset.
  1. Put the device into "Pairing" mode. This procedure varies by headset, but usually involves holding down the power button for 10-15 seconds.
  2. Open a terminal and run 'hcitool scan'

""Note: I am using my address '00:07:a4:b8:f9:77' for this example."" ""Please substitute your address from the hcitool scan output for the remaining steps.""

  1. Look for output like this.

ellie@ellie-laptop:~$ hcitool scan Scanning ... 00:07:A4:B8:F0:77 Motorola HT820 ellie@ellie-laptop:~$

  1. Edit /etc/bluetooth/hcid.conf (gksu gedit /etc/bluetooth/hcid.conf ) and add a section like this

device 00:07:A4:B8:F9:77 { name "Motorola HT820" auth enable; encrypt enable; }

  1. Restart Bluetooth services (sudo /etc/init.d/bluetooth restart)
Starting the "sco" driver for the first time.
  1. Place the Headset into "pairing" mode as above.
  2. Open a terminal and run 'btsco -v 00:07:a4:b8:f9:77'
  3. This should cause the gnome bluetooth manager to ask you for a pin number to pair. This is usually 0000 or 1234
Testing the "sco" driver.

aplay -B 1000000 -D plughw:Headset /usr/share/sounds/login.wav You should hear the Ubuntu Login sound.

Configuring btsco to run automatically at each boot.
  1. Open System -> Preferences -> Sessions and select "startup Programs"
  2. Click New.
  3. Enter "BT Sco Headset audio" for the Name.
  4. Enter '/usr/bin/btsco -r -f 00:07:a4:b8:f9:77'
  5. Click Ok and Apply
Setting the headset as your default alsa audio device.

asoundconf set-default-card Headset This will create the appropriate entries in your .asoundrc file. This setting is per-user.

Installing High quality "a2d" audio drivers

See [new build docs] for information on these drivers. There is a bluetooth-alsa package in the testing Debian apt repository, perhaps we can port it for gutsy?

Troubleshooting

The BluetoothSkype; page has additional information for configuring the new driver. See [Contact/troubleshooting] for troubleshooting information.