From: Marcel Holtmann <marcel@rvs.uni-bielefeld.de>
To: Steven Singer <steven.singer@csr.com>
Cc: "Riikka Jylhä" <jylhar@ac.tut.fi>,
"BlueZ Mailing List" <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] USB-drivers
Date: 04 Aug 2003 16:28:50 +0200 [thread overview]
Message-ID: <1060007336.954.29.camel@pegasus> (raw)
In-Reply-To: <3F2E5F7D.50702@csr.com>
Hi Steven,
> > My CSR dongles only support linear PCM (2's complement) with 8 or 16 bit
> > for input. See output of "hciconfig hci0 voice".
>
> That shouldn't be the whole truth. The full list should be:
>
> Linear:
> 16 bit with up to 7 MSBs ignored, or 8 bit
> 1's complement, 2's complement or sign-magnitude
> Logarithmic:
> 8 bit u-law or A-law
you are right. I made a mistake in encoding the voice setting value and
assumed that u-law and A-law are not allowed for input.
> The sample rate is fixed at 8 kHz (as defined by the Bluetooth spec).
>
> I wouldn't recommend sending mp3s over a SCO link. Wavs should be
> fine provided they're resampled at 8 kHz, you set the voice setting
> to the appropriate data format, you skip the header and you get the
> rate matching right.
I use the following command to convert the raw data from a player
program like mpg123 into the needed format for SCO input (0x0060)
sox -t raw -r 44100 -c 2 -s -w - -t raw -r 8000 -c 1 -s -w -
And I can hear MP3's over a Bluetooth headset and the quality is good ;)
Do anyone have easy C code for resampling to 8 KHz or converting to PCM,
u-law or A-law? Or do anyone know a good C library for this job?
Regards
Marcel
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2003-08-04 14:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-04 11:40 [Bluez-users] USB-drivers Riikka Jylhä
2003-08-04 12:15 ` Marcel Holtmann
2003-08-04 12:41 ` Riikka Jylhä
2003-08-04 12:56 ` Marcel Holtmann
2003-08-04 13:28 ` Steven Singer
2003-08-04 14:28 ` Marcel Holtmann [this message]
2003-08-05 12:38 ` Riikka Jylhä
2003-08-06 7:13 ` Riikka Jylhä
2003-08-06 11:18 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1060007336.954.29.camel@pegasus \
--to=marcel@rvs.uni-bielefeld.de \
--cc=bluez-users@lists.sourceforge.net \
--cc=jylhar@ac.tut.fi \
--cc=steven.singer@csr.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.