Ubuntu 18.04下调试Ekho语音问题

admin 提交于 周二, 03/17/2020 - 16:19

有用户反映使用dog install ekho; dog restart后Ekho语音并没有生效。下面是一些调试技巧,希望可以帮助解决问题:

首先,我们确认Ekho安装成功。在命令行里输入ekho 123,应该可以听到普通话朗读一百二十三。如果不行,请尝试dog install ekho重新安装Ekho。

然后,我们确认Ekho和系统语音服务程序接口正常。在命令行里输入spd-say -o ekho 123,应该可以听到普通话朗读一百二十三。如果听不到,我们可以尝试重启读屏和语音服务程序,方法有两种:一种是系统自带的,SUPER+alt+s,按一次关闭,再按一次重新启用;另一种方法是命令行运行dog restart。

上面两步通过之后,我们需要做的是把系统语音从默认的eSpeak配置成Ekho。通过命令行运行spd-conf实现。注意,这个方法仅适用于Ubuntu 20.04之前的版本。配置程序会询问我们若干问题,只有一个需要修改,就是问Default output module的时候填ekho,其它全部回车取默认值即可。如果全部都回车取默认值就会恢复eSpeak语音。修改完之后,我们通过按两次SUPER+alt+s或运行dog restart重启读屏,应该就可以听到Ekho语音生效了。

下面是spd-conf的配置例子:

$ spd-conf

Speech Dispatcher configuration tool

Do you want to setup a completely new configuration? [yes] :
>
Do you want to create/setup a 'user' or 'system' configuration [user] :
>
User configuration already exists.
Do you want to rewrite it with a new one? [no] :
>
Keeping configuration intact and continuing with settings.
Configuring user settings for Speech Dispatcher
Default output module [espeak] :
>ekho
Default language (two-letter iso language code like "en" or "cs") [en] :
>
Default audio output method [pulse] :
>
Default speech rate (on the scale of -100..100, 0 is default, 50 is faster, -50 is slower) [0] :
>
Default speech pitch (on the scale of -100..100, 0 is default, 50 is higher, -50 is lower) [0] :
>
Do you want to have Speech Dispatcher automatically started from ~/.config/autostart ?
This is usually not necessary, most applications will start Speech Dispatcher automatically. [no] :
>
Do you want to start/restart Speech Dispatcher now and run some tests? [yes] :
>
Starting Speech Dispatcher in user-mode
[Tue Mar 17 16:06:43 2020 : 981518] speechd: Speech Dispatcher 0.8.8 starting
Testing Speech Dispatcher using spd_say
Did you hear the message about Speech Dispatcher working? [yes] :
>
Speech Dispatcher is installed and working!
Speech Dispatcher works. Do you want to skip other tests? [yes] :
>


Diagnostics results:
Speech Dispatcher is working
End of diagnostics results
 

标签

添加新评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"汉语"