Monday, February 28, 2011

Commercial System Installation

Become a technician







======================================================================================================================================== Attila, I suspect you didn't modify src/audio/Makefile.am to link to pulse-simple. I posted the steps to install the pulse.c driver to the Vinux list instead of here, hoping to reduce the non-Orca specific traffic on this list. But, this thread seems to have unstoppable momentum... sorry Willie! Here's my steps for installing the pulse driver in speech-dispatcher on Ubuntu Lucid alpha. I've also tried it on Ubuntu Karmic, and while the package names are slightly different, the process seems to work. I've attached pulse.c again, just to keep this all in one e-mail: $ sudo apt-get build-dep speech-dispatcher $ mkdir speech-dispatcher $ cd speech-dispatcher $ apt-get source speech-dispatcher $ cd speech-dispatcher-0.6.7+git20090914~unofficial $ cp ~/Download/pulse.c src/audio Then, edit src/audio/Makefile.am, and change the line that says: PULSE_LIBS = -lpulse to PULSE_LIBS = -lpulse-simple Then, continue with: $ dpkg-buildpackage $ cd .. $ sudo dpkg -i speech-dispatcher_0.6.7+git20090914~unofficial-0ubuntu4_i386.deb $ sudo dpkg -i libspeechd2_0.6.7+git20090914~unofficial-0ubuntu4_i386.deb $ python-speechd_0.6.7+git20090914~unofficial-0ubuntu4_all.deb Then, edit ~/.speech-dispatcher/conf/speechd.conf. Change the line that starts with AudioOutputMethod to: AudioOutputMethod "pulse" Then, reboot. In theory you should have very nice performance with Orca when using pulseaudio and espeak, even with the speech rate set to 100%. It works well for me. Bill On Tue, Dec 22, 2009 at 2:52 AM, Hammer Attila < hamm ... @pickup.hu > wrote: Dear List, How can I apply the new driver (Bill Cox modifyed driver)? I would like testing this driver. Original prewious tested libao driver not producing compiling error my machine, but if I owerwrite src/audio/pulse.c file, speech-dispatcher does'nt compiling. If I try apply the libao.diff file (sent another letter with attachment), the patching is not happened. Another question: If I succesfuly compiling the new driver with anybody instruction, what need choosing with spd-conf utility? Pulse, or libao? I am using Ubuntu Lucid. Attila _______________________________________________ Orca-list mailing list Orca ... @gnome.org http://mail.gnome.org/mailman/listinfo/orca-list Visit http://live.gnome.org/Orca for more information on Orca. The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions Netiquette Guidelines are at http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines Log bugs and feature requests at http://bugzilla.gnome.org /* * libao.c -- The libao backend for the spd_audio library. * * Author: Marco Skambraks < mar ... @openblinux.de > * Date: 2009-12-15 * * Copied from Luke Yelavich's libao.c driver, and merged with code from * Marco's ao_pulse.c driver, by Bill Cox, Dec 21, 2009. * * This is free software; you can redistribute it and/or modify it under the * terms of the GNU Leser General Public License as published by the Free * Software Foundation; either version 2.1, or (at your option) any later * version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this package; see the file COPYING. If not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. * */ #include #include #include #include #include #include /* send a packet of XXX bytes to the sound device */ #define PULSE_SEND_BYTES 256 /* This is the smallest audio sound we are expected to play immediately without buffering. */ #define PA_MIN_AUDIO_LENTH 100 static FILE *pulseDebugFile = NULL; /* Write to /tmp/speech-dispatcher-pulse.log */ #ifdef DEBUG_PULSE static void MSG(char *message, ...) { va_list ap; if(pulseDebugFile == NULL) { pulseDebugFile = fopen ("/tmp/speech-dispatcher-pulse.log", "w"); } va_start(ap, message); vfprintf(pulseDebugFile, message, ap); va_end(ap); fflush(pulseDebugFile); } #else static void MSG(char *message, ...) { }