[raspberry-vi] Re: Pulse Audio, Lib AIO alsa, etc.

  • From: Mike Ray <mike@xxxxxxxxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Wed, 09 Apr 2014 16:18:52 +0100

Greg, thanks for this.  I might need to re-address pulse at some point 
because it is better than ALSA and possibly other things when trying to 
play more than one audio stream at a time.

Actually while we are on the subject of pulse and audio, there is some 
stuff I still don't understand...

In the speech-dispatcher configuration file it is possible to configure 
sd for:

ALSA
pulse
libao
NAS
OSS

Disregarding OSS and NAS for now because I don't think they have 
anything for us on the Pi, looking at the Makefile for espeak, espeak 
can be configured to use:

pulse
ALSA
portaudio

Now I don't understand the relationship of these things.

The default configuration of espeak if the Makefile is not changed is to 
use pulseaudio if the server is running, else fall back and use 
portaudio.  But reading your mail Greg and some other stuff there is the 
suggestion that pulseaudio can be configured to use ALSA.

What I am consused about is there seems to be some contradiction of the 
'level' at which these things are relevant.

In simple terms, if it is possible to configure pulseaudio to use ALSA, 
making a mini diagram like this true:

pulseaudio ---> ALSA

Then why is it also possible to put either 'pulse' or 'alsa' in the 
speechd.conf file?

See the confusion?

Or would putting 'alsa' in the speech-dispatcher config file just mean 
pulse is being bypassed and sd is going straight to ALSA?

Confusing eh?

Mike


On 09/04/2014 15:51, Gregory Osborne wrote:
> First off, Mike, congratulations on all the progress. I know you’ve been 
> working long enough and hard enough at it – that and it’s been a hard enough 
> nut to crack.
> Second – to Mike and anyone else interested.
>
> When I tried configuring pulse audio, I had no success on the Pi, but on my 
> AMD arch computer I was able to get pulse audio working by adding a couple of 
> lines into one of the configuration files referencing it to use alsa.
>
> I got that information from the arch linux pulse audio wiki and that same 
> wiki has info on using pulse with lib aio.
>
> That wiki is available at:
> https://wiki.archlinux.org/index.php/PulseAudio
>
> - Greg
> ===========================================================
> The raspberry-vi mailing list
> Archives: //www.freelists.org/archives/raspberry-vi
> Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
> -----------------------------------------------------------
> Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
> Foundation.
>
> This list is not affiliated to the Raspberry Pi Foundation and the views and 
> attitudes expressed by the subscribers to this list do not reflect those of 
> the Foundation.
>
> Mike Ray, list creator, January 2013
>


-- 
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

The box said: 'install Windows XP, 7 or better'. So I installed Linux

Interested in accessibility on the Raspberry Pi?
Visit: http://www.raspberryvi.org/

 From where you can join our mailing list for visually-impaired Pi hackers

=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: