-
Notifications
You must be signed in to change notification settings - Fork 130
FC 14 64 bit Cepstral voice installation
Cepstral voice engine is called "swift".
If you test with swift hello
and get this error oss_audio: failed to open audio device /dev/dsp
. This is because this audio device does not exist under FC14 AND as of this post Cepstrals voices DO use OSS audio drivers. To fix this; You will require the following rpm and possibly others. might be a good
idea to install all PulseAudio rpms. pulseaudio-utils-0.9.21-7.fc14.x86_64 : PulseAudio sound server utilities. This rpm provides a wrapper called: "padsp".
Now with this rpm installed you can:
padsp swift hello
and the Cepstral voice of your choice will speak. No oss_audio: failed to open .... error
. Now to fix this for MisterHouae you need to complete the following 2 steps:
- when you install Cepstral voice engine it places the engine in
/opt/swift/bin/swift
and this binary is pointed to by/usr/local/bin/swift
, i.e.,/usr/local/bin/swift -> /opt/swift/bin/swift
. Remove the link, i.e./usr/local/bin/swift
and replace it with a file calledswift
that looks like this:
#!/bin/sh
if test -x /usr/bin/padsp ; then
exec /usr/bin/padsp /opt/swift/bin/swift "$@"
else
exec /usr/bin/opt/swift/bin/swift "$@"
fi
chmod +x
this file (/usr/local/bin/swift
) or you will get permission errors in the data/log/print.log
file
Regarding the above if you do not use Cepstral's voice engine but another, you might be able to accomplish the same using padsp
by substituting the appropriate binary in the file above. Of course you would want to name something other than "swift".
comment out the voice_text_card
parameter as noted below.
speak_engine=swift
voice_names=male=>Cepstral David
voice_text=swift
voice_text_swift=/usr/local/bin/swift
#voice_text_card=/dev/dsp
sound_program=play
sound_pre_speak=/usr/share/sounds/purple/alert.wav