Discussion:
bluetooth query
Kirk Reiser
2017-04-01 17:08:34 UTC
Permalink
Hello folks: I received a couple of bluetooth devices for Xmas and am
just now getting around to looking at them. I was wondering what types
of experience people have had with getting bluetooth working with
speakup?

Specifically I am interested in working with ALSA without going
through pulse-audio but figured peoples experience with pulse would
also be interesting to those who use it.

Any stories or suggestions are welcome.

Kirk
--
Well that's it then, colour me secure!

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQENBFYV5DMBCAC060mbsnLhGPjnFkf0R0p+7MxcfxlOuy5wc8y59y9ZNF0RZD1s
OTEsDih4vD9YJ3zA78VsBUDK47aiDWduh3nHzYN2ZSuxAQ9u7qPqphCG0jPagTU8
p7+Ceeya4I5odWtq+Nkf1UrHB7KKEtexphStSwUG5Bhi4bb84YinmX/a3I+OGV1D
by4QBSdPvSuDw0qFkt/ucLyEwv4L6lDjoH2GF+tnCew4SJtliJFvA1k7NpWO6HW9
aWtBxfYU85ccZKBSE25y+9KprUCncVTpaVs3FztCWG0dQRXHvEbV+Damp/IBd9Jv
HZX7azqbERUa/FjPTIlZhhI9VtaZaFfJSH+5ABEBAAG0HUtpcmsgUmVpc2VyIDxr
aXJrQHJlaXNlcnMuY2E+iQE+BBMBAgAoBQJWFeQzAhsDBQkADS8ABgsJCAcDAgYV
CAIJCgsEFgIDAQIeAQIXgAAKCRAHTEsk7UQUUoeuB/wIqsdLCfDrSvr3qg7rKBDg
ru44OMuRit6hbdWFZjmxccCdjeNhBJRVd5wrEqjj5YoqQAhmacXaEB0DO/TZlDgo
kUfJM7lrtQD4mYU9GVtrzJxCJoBUyeMVnMJt39F91tBu0mYM6oI/dv81dwxIv++4
hj55TZ4GG7DGYAy4LwNb+noNbivgOFHlnfNq8nxhZkHbJdYKP+sptZOL5sagmBQZ
iS9STB54g/U7Jtt1Fe+JwDmbxQhbSHa9JuWn0xZ8CtYhrz06xSqZl5vpMlak3eW2
x6m6IcqZfyuI2K7W/9BCgcsQyYzufO4Gk9KyPNISskX6pFBLuNxIH6hdfxSYYm9y
uQENBFYV5DMBCACtMyhHog5MR6eQUPTx7fWH5ntkgCtmWvQp4lcKj0HHbteDWglS
NVbWKWEk9PAKA4UeQVUH4vOhTRhAPpuDUavLdp2tDtT7ZBVh91B3AWIM6+7fIvyU
2uYt1q/CNjga8RllXBT7mW2zHGEYQFIkBJvqlU0PN1HlxRZIbSSEb+zQuVAd+ph3
kt/oZon3ZbNmKg+arsYMmKkYJ0REwKQib7h5Xl31aK74XmWBp2Ky+lopsJSP8wpH
AfC71h4s3LDm8ADHF1Ns4KuGZdLTugr8uiPm5kEJFGes1uYKy8R7OTFko0NEuJkv
STfpPYnTU2qDCJBH08zZErI/6YBIlSsCSde3ABEBAAGJASUEGAECAA8FAlYV5DMC
GwwFCQANLwAACgkQB0xLJO1EFFKAmgf/d3dk1/HgmF8rmvYVru/hJvmIpmiLqPl5
bYSwdZeU+k82qp3xACM2yMJhOh89SgHsaaqQAE1qo5rAJcSG7/+7M/kzf4u/WM/E
unXDtLkbzi5Zl+gjoikrfOhgF0NmuGdlrOme8a6ue7+iE4XLAo0/jhVlh45O6Iq0
0DGyeFr22cR3jZj4wRmPw5zj4r/sWc06UfquVAEMmfIvJMaGYvwBI+TU6gI8MjLe
VDY0vay/nQ79fXSLQmYEvjwKXIavQu9c8TFt0z9EDdoIMx69ZunqZuYQInxaT+cL
i9zhihMGz4XA1q3blLNX3I0jWzAa23ZchI7htc3kfxp1jWqrGyGEIg==
=nrPH
-----END PGP PUBLIC KEY BLOCK-----
Chris Brannon
2017-04-02 03:28:08 UTC
Permalink
Post by Kirk Reiser
Specifically I am interested in working with ALSA without going
through pulse-audio but figured peoples experience with pulse would
also be interesting to those who use it.
I'm also interested if anyone has any experience with this. I managed
to get a bluetooth headset to pair with Linux, and then I used
bluez-alsa to drive it. I could play audio files with programs like
mpv, but getting it to work as the default audio device for everything,
including espeakup, seems a bit more problematic.

-- Chris
Chris Brannon
2017-04-02 04:17:03 UTC
Permalink
As far as I can tell, bluez-alsa is currently a dead-end for us.
Here are the two problems I see:

1. It does not do any kind of software mixing. You can only play one
audio stream at a time. dmix can't be used, because it requires a
hardware device, and bluez-alsa provides a virtual alsa device.
2. There's got to be a way for audio to fall back to another card when a
bluetooth headset loses its charge, goes out of range, etc. I don't
know how that could be made to work seamlessly.
I wouldn't want espeakup to become completely confused / nonfunctional
just because the BT headset became disconnected.

So I don't think bluetooth with alsa is a good fit for console speech.

-- Chris
Chris Brannon
2017-04-04 23:09:46 UTC
Permalink
Yes, you can run Speakup through a bluetooth headset. As I said earlier
in the thread, bluez-alsa is a dead-end. I finally had to make my peace
with pulseaudio over the last couple days. In order to use it with one
of the Speakup softsynth options, you must run pulse in system mode.
The pulse developers strongly discourage this. One of their biggest
reasons is security concerns in a multiuser setup. Frankly, I could
care less, because the machines in my house are just used by me or my
partner. It's not like we're in a corporate environment. Getting pulse
to run in system mode took a bit of work. Since it is so frowned upon,
the documentation for doing it is pretty minimal. And my distro didn't
seem to have many helpful resources. Tomorrow, when I'm thinking more
clearly, I'll try and document all of the steps I took to get it to
work.

So to all of the people (including me) who said that speakup / espeakup
don't play nicely together, that's only partially correct. If you're
willing to run in system mode and go against the recommendations of the
pulse people, they play quite nicely together indeed.

-- Chris
Glenn At Home
2017-04-05 01:03:48 UTC
Permalink
I will look forward to that, as I think that in some ways, Linux is more
secure than I need for personal use.
Glenn
----- Original Message -----
From: "Chris Brannon" <***@the-brannons.com>
To: <***@linux-speakup.org>
Sent: Tuesday, April 04, 2017 6:09 PM
Subject: Re: bluetooth query


Yes, you can run Speakup through a bluetooth headset. As I said earlier
in the thread, bluez-alsa is a dead-end. I finally had to make my peace
with pulseaudio over the last couple days. In order to use it with one
of the Speakup softsynth options, you must run pulse in system mode.
The pulse developers strongly discourage this. One of their biggest
reasons is security concerns in a multiuser setup. Frankly, I could
care less, because the machines in my house are just used by me or my
partner. It's not like we're in a corporate environment. Getting pulse
to run in system mode took a bit of work. Since it is so frowned upon,
the documentation for doing it is pretty minimal. And my distro didn't
seem to have many helpful resources. Tomorrow, when I'm thinking more
clearly, I'll try and document all of the steps I took to get it to
work.

So to all of the people (including me) who said that speakup / espeakup
don't play nicely together, that's only partially correct. If you're
willing to run in system mode and go against the recommendations of the
pulse people, they play quite nicely together indeed.

-- Chris
_______________________________________________
Speakup mailing list
***@linux-speakup.org
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
Janina Sajka
2017-04-06 16:47:20 UTC
Permalink
I'm all for security, but only within reason. I've yet to hear a
reasonable use case that explains why system wide pulseaudio is
insecure.

The only use case I've ever come across from the pulse people, and I
have pushed on this quite hard from time to time, says that you don't
want to enable someone to surreptitiously enable a colleague, or a
spouse's microphone. In other words, the pulse people don't want to be
associated with corporate or matrimonial spying.

So, those interested in spying of this type will have to continue to
focus on Alexa, or iphone, or Android, I suppose!

What a pile of <expletive deleted>.

Janina
Post by Chris Brannon
Yes, you can run Speakup through a bluetooth headset. As I said earlier
in the thread, bluez-alsa is a dead-end. I finally had to make my peace
with pulseaudio over the last couple days. In order to use it with one
of the Speakup softsynth options, you must run pulse in system mode.
The pulse developers strongly discourage this. One of their biggest
reasons is security concerns in a multiuser setup. Frankly, I could
care less, because the machines in my house are just used by me or my
partner. It's not like we're in a corporate environment. Getting pulse
to run in system mode took a bit of work. Since it is so frowned upon,
the documentation for doing it is pretty minimal. And my distro didn't
seem to have many helpful resources. Tomorrow, when I'm thinking more
clearly, I'll try and document all of the steps I took to get it to
work.
So to all of the people (including me) who said that speakup / espeakup
don't play nicely together, that's only partially correct. If you're
willing to run in system mode and go against the recommendations of the
pulse people, they play quite nicely together indeed.
-- Chris
_______________________________________________
Speakup mailing list
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
--
Janina Sajka, Phone: +1.443.300.2200
sip:***@asterisk.rednote.net
Email: ***@rednote.net

Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org

The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
tony seth
2017-04-10 13:26:23 UTC
Permalink
Yaaay! I do look fondly forward to that documentation. Thanks muchee! Cheereo!
Loading...