WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Has anybody installed espeak-ng?  (Read 124 times)

Offline labeas

  • Full Member
  • ***
  • Posts: 147
Has anybody installed espeak-ng?
« on: July 10, 2018, 07:11:38 PM »
=> App > Download+Load:  espeak-ng.tcz
-> which espeak-ng ==  /usr/local/bin/espeak =ok
-> espeak -h == espeak: error while loading shared libraries:
libasound.so.2: cannot open shared object file: No such file or directory
=> fetch libasound.tcz
-> tce-load -i ./libasound.tcz
libasound.tcz: OK

->  espeak-ng  -h == ok
-> espeak-ng "the rain in Spain" ==
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/local/etc/als
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
error: No such file or directory
=> Copy alsa.conf from T4/Slak: installation
== ALSA lib conf.c:3544:(snd_config_hook_load) cannot stat file/directory
  /usr/local/etc/alsa/cards/aliases.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
error: No such file or directory

??????????

Offline aus9

  • WikiUser
  • *
  • Posts: 35
Re: Has anybody installed espeak-ng?
« Reply #1 on: July 10, 2018, 10:17:12 PM »
Hi

until you get a better reply.....

first I have a quirk or fix required to get sound.....so I have a .local/bin/sound script that reads

Code: [Select]
#!/bin/sh
tce-load -i alsa-config alsa
sudo rmmod snd_hda_intel
sudo modprobe snd_hda_intel position_fix=1
sudo alsactl restore -f /home/tc/sound.levels

(2) then check your mixer levels such as command= alsamixer   or alternatively test for sound output with = speaker-test [-Ddefault:1] -c2 -t wav -l1

as per info from alsa-config.......as we need sound output before we can test text to speak

(3) for me txt to output works 
Code: [Select]
espeak-ng "the rain in Spain" == 
also works without the ==

Maybe we look at getting sound working first?

I would suggest you ensure alsa-config is loaded and not use another distro's file at this stage
« Last Edit: July 10, 2018, 10:19:44 PM by aus9 »
Good Luck

Offline labeas

  • Full Member
  • ***
  • Posts: 147
Re: Has anybody installed espeak-ng?
« Reply #2 on: July 13, 2018, 08:42:20 AM »
>   Maybe we look at getting sound working first?
----
Yes, of course. eg. `aplay sample.wav'
I was concentrating on the complexity of TC's download & install OR install at boot..?
Also, I: lame $1.wav $1.mp3; and listen to [TextToSpeech] on a different device.
TC64 is good to fetch the text [by links URL] and `wily` to <clean> it.
For TextToSpeech I've been using `festival`, but not via TC.
TC's espeak-ng doesn't sound any better than 10 years ago; and although
the <data files> for the MBROLA improvement were d/l-ed, I get:
"The specified espeak-ng voice does not exist."
   Since the "specified espeak-ng voice" to see if MBROLA is any better
than plain-espeak, has a name, and possibly a non-default Path-to-the-file,
I'm wondering if TC's having the files <sym-linked to loop-devices> is a
problem.
  Can we assume that espeak-ng was only added to our repetoire AFTER it was
confirmed as running on TC ?
.... OK, I've noted the script to control the SoundPlayer,
after the driver has been downloaded. But my priority is to
get the claimed speech improvement from MBROLA.
   Thanks.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10054
Re: Has anybody installed espeak-ng?
« Reply #3 on: July 13, 2018, 09:13:05 AM »
Can we assume that espeak-ng was only added to our repetoire AFTER it was
confirmed as running on TC ?

affirmative

Offline labeas

  • Full Member
  • ***
  • Posts: 147
Re: Has anybody installed espeak-ng?
« Reply #4 on: July 13, 2018, 10:59:54 AM »
>]   Can we assume that espeak-ng was only added to
>] our repetoire AFTER it was
>]  confirmed as running on TC ?

>   affirmative

I should have asked if the included mbrola refinements
have been confirmed ?
My understanding is that although mbrola's <translator>
is not included: its data [which gives better results] is.
-> ls /usr/local/share/espeak-ng-data/mbrola_ph ==
af1_phtrans  ee1_phtrans  hn1_phtrans  it3_phtrans ...
   Trying to use mbrola, I use 2 args [after many tries]:
-v <voice name> Use voice file of this name from espeak-ng-data/voices
--path="<path>"
      Specifies the directory containing the espeak-ng-data directory
but always get <-v arg not found>.
I was hoping that improved quality via mbrola-data, would allow
me to avoid needing to: `chroot <slakware partition to run> festival`
Thanks.



Offline aus9

  • WikiUser
  • *
  • Posts: 35
Re: Has anybody installed espeak-ng?
« Reply #5 on: July 13, 2018, 07:44:55 PM »
maybe you could build festival for TC?

http://festvox.org/packed/festival/2.5/
voices
http://festvox.org/packed/festival/2.5/voices/

and there is a git too
https://github.com/festvox/festival

I realize I have drifted off topic to espeak but you appear to use festival
Good Luck