From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9]) by speech.braille.uwo.ca (Postfix) with ESMTP id 81EB7C1A287 for ; Sun, 27 Feb 2011 15:11:34 -0500 (EST) Received: from pd7ml2no-ssvc.prod.shaw.ca ([10.0.153.162]) by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 27 Feb 2011 13:11:34 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=RoojVSJIJluF7nPEL/ZfEjhFDjN56szB521nsKvm9G4= c=1 sm=1 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=kNJomTX52Cr8WCRvCvE+DQ==:17 a=f44By3HgC1FLwKeGvp0A:9 a=_f5woG8WiWEeAlMNe_C-p-nR3cMA:4 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO really.lan) ([174.4.134.251]) by pd7ml2no-dmz.prod.shaw.ca with ESMTP; 27 Feb 2011 13:11:33 -0700 Date: Sun, 27 Feb 2011 12:11:33 -0800 From: David Csercsics To: "Speakup is a screen review system for Linux." Subject: Re: espeakup and pulseaudio Message-ID: <20110227201133.GA21633@really.lan> References: <20110227182715.GA3575@nextdog> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110227182715.GA3575@nextdog> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.13 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2011 20:11:34 -0000 On Sun, Feb 27, 2011 at 01:27:16PM -0500, Christopher Moore wrote: > Hello, > I'm running archand have the pulseaudio server running. > When I start espeakup with the rc.d script, the following message repeats > each time data is to be spoken: > wave_open_sound > Pa_OpenStream : err=-9996 (Invalid device) > > So what is the invalid device? Probably portaudio trying to open your sound card using alsa but pulseaudio has already grabbed the card and locked it open so you're getting that error. I don't know how you'd get espeakup to work with pulseaudio anyway since pulseaudio is typically started as a non-root user and espeakup typically needs to be run as root so you can have speech when you login for the first time. Espeakup would work with pulseaudio if you built espeak against pulseaudio instead of portaudio but then as I say I don't know how you're going to get speech in text consoles since espeakup is started as root and the pulseaudio process is not. Yes you can run pulseaudio in systemwide mode but if you do that the program usually disables shared memory and so doesn't run very efficiently. Unless they've changed some of this logic. It's been a long time since I messed with pulseaudio so I'm possibly wrong about some or all of this but if somebody wants to correct me then have at it. I'm not even sure how pulseaudio helps anything over the standard dmix plugins. It's looking like unnecessary complexity at this point but I'd be happy to try to help get this working if somebody can give me a reason why I should bother breaking a very nice sound setup.