* [Bluez-users] Headsetd, skype and bluetooth headsets.
@ 2007-03-08 8:05 Alan Conway
2007-03-08 20:25 ` Gerhard Killesreiter
2007-03-09 3:01 ` Alan Conway
0 siblings, 2 replies; 4+ messages in thread
From: Alan Conway @ 2007-03-08 8:05 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1: Type: text/plain, Size: 1257 bytes --]
Trying to get a plantronics 510s headset working with skype (among other
things) and I'm tantalizingly close. Hopefully someone can help close
the gap.
I go the headset working for input and output with headsetd and headset
plug-in: aplay and arecord -D headset working A-OK - my .asoundrc
attached. Then I tried aoss skype - it *almost* worked. I could hear OK
thru the headset but my voice was weirdly distorted and unrecognizable.
I decided to recompile off the CVS head and now nothing works I get
ALSA lib pcm_sco.c:532:(_snd_pcm_sco_open) Unknown field max_periods
Probably I have some mish-mash of versions installed, it's too late at
night.
So what I'd like to know to speed my quest tomorrow:
* In CVS there are multiple headsetd and alsa-plugins under plugz,
btsco and alsa-plugin-sco. Which is the right one?
* Maybe the distortion indicates some transformation of sound formats
is needed - any hints as to what it might be?
* Is there a better way than aoss for skype? It only shows alsa
hardware devices in it's menus, I haven't found a way to make it use a PCM.
* Any other tips on what might be going wrong, or better ways to
approach this?
I'll be happy to post my solution to the list if that's useful.
Thanks,
Alan.
[-- Attachment #2: .asoundrc --]
[-- Type: text/plain, Size: 1106 bytes --]
pcm.headset {
type plug;
slave.pcm "hw_headset";
}
pcm.hw_headset {
@args [BDADDR TIMEOUT MAX_PERIODS]
# The Bluetooth device address for target headset, used for Audio Gateway (PC) initiated connections
# Please note that this value is ignored when the connection is Headset initiated
@args.BDADDR {
type string
default "00:03:89:95:9C:83" # Put your HS address here
}
# This value represents how long we will try to reach the headset, until we give up.
# Value is in milliseconds
@args.TIMEOUT {
type integer
default 6000
}
# This is the size of the buffer used to queue Voice packets. Value must be between
# 2 and 334 (~ 1 second). Default value is 2 buffers, which works well most of the
# time, and has the advantage of giving us an ultra low delay
@args.MAX_PERIODS {
type integer
default 334
}
type sco
bdaddr $BDADDR
timeout $TIMEOUT
max_periods $MAX_PERIODS
}
ctl.headset {
type sco
}
pcm.a2dpd {
type a2dpd
}
# Use headset via aoss emulation for skype.
pcm.dsp0 {
type plug
slave.pcm "hw_headset"
}
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] Headsetd, skype and bluetooth headsets.
2007-03-08 8:05 [Bluez-users] Headsetd, skype and bluetooth headsets Alan Conway
@ 2007-03-08 20:25 ` Gerhard Killesreiter
2007-03-09 3:01 ` Alan Conway
1 sibling, 0 replies; 4+ messages in thread
From: Gerhard Killesreiter @ 2007-03-08 20:25 UTC (permalink / raw)
To: BlueZ users
Alan Conway wrote:
> Trying to get a plantronics 510s headset working with skype (among other
> things) and I'm tantalizingly close. Hopefully someone can help close
> the gap.
>
> I go the headset working for input and output with headsetd and headset
> plug-in: aplay and arecord -D headset working A-OK - my .asoundrc
> attached. Then I tried aoss skype - it *almost* worked. I could hear OK
> thru the headset but my voice was weirdly distorted and unrecognizable.
> I decided to recompile off the CVS head and now nothing works I get
> ALSA lib pcm_sco.c:532:(_snd_pcm_sco_open) Unknown field max_periods
>
> Probably I have some mish-mash of versions installed, it's too late at
> night.
>
> So what I'd like to know to speed my quest tomorrow:
> * In CVS there are multiple headsetd and alsa-plugins under plugz, btsco
> and alsa-plugin-sco. Which is the right one?
> * Maybe the distortion indicates some transformation of sound formats is
> needed - any hints as to what it might be?
> * Is there a better way than aoss for skype? It only shows alsa hardware
> devices in it's menus, I haven't found a way to make it use a PCM.
> * Any other tips on what might be going wrong, or better ways to
> approach this?
>
> I'll be happy to post my solution to the list if that's useful.
Yes, please. I had to get a cable headset in order to use skype. I could
hear sound and record sound through the bt headset (logitech), but skype
would only get me a beep and nothing more.
aoss didn't work either, maybe I shoudl try it again...
Cheers,
Gerhard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] Headsetd, skype and bluetooth headsets.
2007-03-08 8:05 [Bluez-users] Headsetd, skype and bluetooth headsets Alan Conway
2007-03-08 20:25 ` Gerhard Killesreiter
@ 2007-03-09 3:01 ` Alan Conway
1 sibling, 0 replies; 4+ messages in thread
From: Alan Conway @ 2007-03-09 3:01 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1: Type: text/plain, Size: 2307 bytes --]
Trying to use a plantronics 510s with skype.
Update on my attempts, I've established the setup that almost works. By
almost works I mean:
- aplay, arecord -D headset work, quality is fine for telephone use.
- aoss skype almost works: I can hear the test call clearly, I can
record a message but when it is played back my voice is garbled beyond
recognition.
My next step is to fiddle with pcm settings - I've seen .asoundrc
scripts for skype and dmix that do conversions between 8 and 16 bit
formats and other stuff I know nothing about (but am afraid I'm gonna
learn). Here are the details of how I got this far:
== DETAILS: based on btsco/docs/build.html from CVS, slightly modified.
install libsbc:
Note: When asking for a password simply press Enter.
cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc login
cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc co sbc
cd sbc
./bootstrap
./configure --prefix=/usr
make
sudo make install
install bstco:
cvs
-d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa
login
cvs
-d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa
co btsco
cd btsco
./bootstrap
# Note I added CFLAGS in ./configure. Without them the plugin emits
# a torrent of debug messages that slow it down and ruin the sound quality.
# -NDEBUG is essential, -03 is just for good luck.
./configure --prefix=/usr --enable-alsaplugin CFLAGS="-NDEBUG -03"
make
sudo make install
** Using from skype
My .asoundrc is copied from btsco/alsa-plugins/asound.conf with the
headset address replaced by my own and the following addition for aoss:
# Use headset via aoss emulation for skype.
pcm.dsp0 {
type plug
slave.pcm "hw_headset"
}
Full .asoundrc attached. Run skype as "aoss skype" (you need alsa-oss
package installed.)
== NOTES
The instructions at http://bluetooth-alsa.sourceforge.net/build.html did
*not* work for me. The plugz version of the plugin requires a different
.asoundrc (based on plugz/asound.conf) but aplay -D headset gave me:
[aconway@scooter plugz]$ aplay -D headset /usr/share/sounds/startup3.wav
Playing WAVE '/usr/share/sounds/startup3.wav' : Signed 16 bit Little
Endian, Rate 44100 Hz, Stereo
aplay: set_params:909: Channels count non available
Cheers,
Alan.
[-- Attachment #2: .asoundrc --]
[-- Type: text/plain, Size: 1106 bytes --]
pcm.headset {
type plug;
slave.pcm "hw_headset";
}
pcm.hw_headset {
@args [BDADDR TIMEOUT MAX_PERIODS]
# The Bluetooth device address for target headset, used for Audio Gateway (PC) initiated connections
# Please note that this value is ignored when the connection is Headset initiated
@args.BDADDR {
type string
default "00:03:89:95:9C:83" # Put your HS address here
}
# This value represents how long we will try to reach the headset, until we give up.
# Value is in milliseconds
@args.TIMEOUT {
type integer
default 6000
}
# This is the size of the buffer used to queue Voice packets. Value must be between
# 2 and 334 (~ 1 second). Default value is 2 buffers, which works well most of the
# time, and has the advantage of giving us an ultra low delay
@args.MAX_PERIODS {
type integer
default 334
}
type sco
bdaddr $BDADDR
timeout $TIMEOUT
max_periods $MAX_PERIODS
}
ctl.headset {
type sco
}
pcm.a2dpd {
type a2dpd
}
# Use headset via aoss emulation for skype.
pcm.dsp0 {
type plug
slave.pcm "hw_headset"
}
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] Headsetd, skype and bluetooth headsets.
@ 2007-04-26 17:41 Ma Begaj
0 siblings, 0 replies; 4+ messages in thread
From: Ma Begaj @ 2007-04-26 17:41 UTC (permalink / raw)
To: BlueZ users
Did you or someone else solve this problem?
I have the same problem. I applied the latest kernel patch (v4.2) with
the latest vanilla kernel 2.6.21.
I have Jabra 250v, sound is ok with aplay and arecord, hearing in
skype is ok, but my recorded voice (echo123) is "garbled beyond
recognition".
Thanks
M.
Alan Conway wrote:
---- quote ---
Trying to use a plantronics 510s with skype.
Update on my attempts, I've established the setup that almost works. By
almost works I mean:
- aplay, arecord -D headset work, quality is fine for telephone use.
- aoss skype almost works: I can hear the test call clearly, I can
record a message but when it is played back my voice is garbled beyond
recognition.
My next step is to fiddle with pcm settings - I've seen .asoundrc
scripts for skype and dmix that do conversions between 8 and 16 bit
formats and other stuff I know nothing about (but am afraid I'm gonna
learn). Here are the details of how I got this far:
== DETAILS: based on btsco/docs/build.html from CVS, slightly modified.
install libsbc:
Note: When asking for a password simply press Enter.
cvs -d:pserver:anonymous <at> sbc.cvs.sourceforge.net:/cvsroot/sbc login
cvs -d:pserver:anonymous <at> sbc.cvs.sourceforge.net:/cvsroot/sbc co sbc
cd sbc
./bootstrap
./configure --prefix=/usr
make
sudo make install
install bstco:
cvs
-d:pserver:anonymous <at>
bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa
login
cvs
-d:pserver:anonymous <at>
bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa
co btsco
cd btsco
./bootstrap
# Note I added CFLAGS in ./configure. Without them the plugin emits
# a torrent of debug messages that slow it down and ruin the sound quality.
# -NDEBUG is essential, -03 is just for good luck.
./configure --prefix=/usr --enable-alsaplugin CFLAGS="-NDEBUG -03"
make
sudo make install
** Using from skype
My .asoundrc is copied from btsco/alsa-plugins/asound.conf with the
headset address replaced by my own and the following addition for aoss:
# Use headset via aoss emulation for skype.
pcm.dsp0 {
type plug
slave.pcm "hw_headset"
}
Full .asoundrc attached. Run skype as "aoss skype" (you need alsa-oss
package installed.)
== NOTES
The instructions at http://bluetooth-alsa.sourceforge.net/build.html did
*not* work for me. The plugz version of the plugin requires a different
.asoundrc (based on plugz/asound.conf) but aplay -D headset gave me:
[aconway <at> scooter plugz]$ aplay -D headset /usr/share/sounds/startup3.wav
Playing WAVE '/usr/share/sounds/startup3.wav' : Signed 16 bit Little
Endian, Rate 44100 Hz, Stereo
aplay: set_params:909: Channels count non available
Cheers,
Alan.
pcm.headset {
type plug;
slave.pcm "hw_headset";
}
pcm.hw_headset {
<at> args [BDADDR TIMEOUT MAX_PERIODS]
# The Bluetooth device address for target headset, used for Audio
Gateway (PC) initiated connections
# Please note that this value is ignored when the connection
is Headset initiated
<at> args.BDADDR {
type string
default "00:03:89:95:9C:83" # Put your HS address here
}
# This value represents how long we will try to reach the headset,
until we give up.
# Value is in milliseconds
<at> args.TIMEOUT {
type integer
default 6000
}
# This is the size of the buffer used to queue Voice packets. Value
must be between
# 2 and 334 (~ 1 second). Default value is 2 buffers, which works
well most of the
# time, and has the advantage of giving us an ultra low delay
<at> args.MAX_PERIODS {
type integer
default 334
}
type sco
bdaddr $BDADDR
timeout $TIMEOUT
max_periods $MAX_PERIODS
}
ctl.headset {
type sco
}
pcm.a2dpd {
type a2dpd
}
# Use headset via aoss emulation for skype.
pcm.dsp0 {
type plug
slave.pcm "hw_headset"
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-26 17:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 8:05 [Bluez-users] Headsetd, skype and bluetooth headsets Alan Conway
2007-03-08 20:25 ` Gerhard Killesreiter
2007-03-09 3:01 ` Alan Conway
-- strict thread matches above, loose matches on Subject: below --
2007-04-26 17:41 Ma Begaj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.