festival: can't open /dev/dsp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
festival (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: festival
When running festival from the command line it has trouble accessing the sound device reporting "can't open /dev/dsp"
After troubleshooting I found that this problem has been around since Dapper and still occurs in Lucid. But the workaround is very easy:
Create ~/.festivalrc with the following content
;use ALSA
(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")
Perhaps we could update the festival package so that no troubleshooting or workaround is necessary.
$ festival
Festival Speech Synthesis System 1.96:beta July 2004
Copyright (C) University of Edinburgh, 1996-2004. All rights reserved.
For details type `(festival_
festival> (SayText "hello")
Linux: can't open /dev/dsp
#<Utterance 0xb6a83aa8>
festival>
The solution comes from this thread: http://
festival 1.96~beta-10ubuntu1
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Linux machine 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 UTC 2010 i686 GNU/Linux
Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here.
This file must also be created in Natty Narwhal.
Thanks for taking the time to make Ubuntu better!