espeak fails with "could not open /dev/dsp"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
espeak (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: espeak
yesterday i tested espeak and it worked fine, but today i get the following error:
nailor@nailworks:~° espeak foo [1029]
PaHost_OpenStream: could not open /dev/dsp for O_WRONLY
PaHost_OpenStream: ERROR - result = -10000
PaHost_OpenStream: could not open /dev/dsp for O_WRONLY
PaHost_OpenStream: ERROR - result = -10000
PaHost_OpenStream: could not open /dev/dsp for O_WRONLY
PaHost_OpenStream: ERROR - result = -10000
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
NonfreeKernelMo
Package: espeak 1.39-0ubuntu1
ProcEnviron:
LC_TIME=
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/zsh
LC_PAPER=
SourcePackage: espeak
Uname: Linux 2.6.27-11-generic i686
Changed in espeak (Ubuntu): | |
status: | New → Fix Committed |
Changed in espeak (Ubuntu): | |
status: | Fix Committed → Fix Released |
Yes. eSpeak in Ubuntu 8.10 is built to output sound using the OSS sound interface. OSS does not support sound mixing, so you will get this error if some other software is using Sound (or has recently used Sound and has not yet released the /dev/dsp).
eSpeak can be built either to use OSS or to use ALSA which supports sound mixing, depending on which version of the "PortAudio" sound interface library is used.
In Ubuntu 9.04, eSpeak has been built to use ALSA, so this problem should not occur.
You can also avoid this problem by piping its output through an ausio player such as "aplay", eg:
espeak -f textfile --stdout | aplay