Difference between revisions of "Category:How to - bluetooth"
(→High-fidelity Bluetooth audio) |
m (→High-fidelity Bluetooth audio) |
||
Line 13: | Line 13: | ||
put your headset in pairing mode. Usually this means starting from off and holding the power button down until it flashes. Then find the headset's address: | put your headset in pairing mode. Usually this means starting from off and holding the power button down until it flashes. Then find the headset's address: | ||
− | hcitool scan | + | hcitool scan |
edit your /etc/asound.conf with an adapter for bluetooth with the address you just found. My headset is made by itech, so I name the adapter after it: | edit your /etc/asound.conf with an adapter for bluetooth with the address you just found. My headset is made by itech, so I name the adapter after it: |
Revision as of 19:54, 20 March 2008
High-fidelity Bluetooth audio
You can use A2DP with either the internal bluetooth adapter (model 08 or newer) or (for a vx board) a USB adapter.
Install the packages you'll need:
ipkg install bluez-utils bluez-utils-alsa alsa-utils-aplay alsa-utils-arecord madplay
You'll likely need the passkey agent running, at least the first time you connect:
passkey-agent --default 0000 &
put your headset in pairing mode. Usually this means starting from off and holding the power button down until it flashes. Then find the headset's address:
hcitool scan
edit your /etc/asound.conf with an adapter for bluetooth with the address you just found. My headset is made by itech, so I name the adapter after it:
pcm.itech { type bluetooth device "00:0D:3C:8A:13:06" }
now try playing something to it:
madplay song.mp3 -r 44100 --output=wave:- | aplay -D itech
you can also live-encode the line in source to a2dp:
arecord -c 2 -f s16 -r 44100 | aplay -D itech
unfortunately for live encoding, the delay is pretty bad and for some reason I can never get stereo audio from the line-in source.
This category currently contains no pages or media.