By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2657

Summary: [cannot use TTS] no Festival voices found
Product: TDE Reporter: Felix Miata <mrmazda>
Component: tdeaccessibilityAssignee: Timothy Pearson <kb9vqf>
Status: NEW ---    
Severity: normal CC: albator78, bugwatch, deloptes, michele.calgaro
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: amd64   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name: Festival
Attachments: screenshot - Text-to-Speech Manager general tab
screenshot - Text-to-Speech Manager Talkers tab

Description Felix Miata 2016-05-22 03:35:35 CDT
To reproduce:
1-ensure trinity-tdeaccessibilty and its deps, including festival, are installed
2-ensure system sounds are working
3a.try to launch KTTSMgr from TDE Utilities menu
3b.try to launch kttsd from Konsole
3c.try to launch kttsmgr from Konsole
3d.try to launch kttsmgr -caption "%c" %i %u from Konsole (same arguments as in menu)
4.close all windows
5.exit session
6.start new session
7.try to add a "Talker" by clicking "Add"
8.click "OK" in "Add Talker" window
9.click "Cancel"

Actual behavior:
a1.absolutely nothing apparent on the desktop, in panel or in systray
a2.kttsmgr shows only for an instant in top
a3.KNotify notifies for an instant that KTTSMgr is not running
b1.error message repeated 3 times:
libpng error: IDAT: invalid distance too far back
b2.Pop window titled "Query Voices - kttsd" containing:
"Querying Festival for available voices. This could take up to 15 seconds." opens, never goes away, reopens after clickoff about 5 times, then opens window saying "KTTS not configured. At leas one Talker must be configured. Would you like to configure it now? [ ][do not ask again];   [configure] [do not configure]
c1.nothing
d1.error messages (and nothing else):
"kttsmgr: unexpected argument '%i'.
kttsmgr: Use --help to ge a list of available command line options."
6.KTTSMgr Text-to-speech manager window opens to "Talkers" tab (ostensibly so KTTSMgr can be configured)
7.new "Add Talker" window opens apparently to some default selections (English...; Festival Interactive)
8.(repeat of b2, except its window title is "Query Voices - KTTSMgr")
9."Talker Configuration - KTTSMgr" window opens with no voices preselected, no voices to select, and inaccessible "OK" button

Expected behavior:
1-something related to making TTS usable (aka, initialize first use, probably talkers tab in text-to-speech manager)
2-querying Festival for voices produces some kind of activity within a reasonable time, certainly in less than 5 minutes

Notes:
1-tried with similar (identical?) failures on 2 Stretch installations of 14.0.4 and 2 openSUSE 42.1 installations of 14.0.3 on 3 different machines, 2 with Intel CPU and audio, 1 with AMD Kaveri.
2-I have no prior experience with TTS
3-I am trying to get it to work for a friend who absolutely needs it due to Macular Degeneration, and has in the past used it with success in KDE3 on openSUSE 13.1.
4-on openSUSE 42.1 on host gx62b, added packages to try to make it work:
festival
trinity-kbstate
trinity-kmag
trinity-kmousetool
trinity-kmouth
trinity-ksayit
trinity-kttsd
trinity-kttsd-contrib-plugins
trinity-tde-icons-mono
trinity-tdeaccessibility
5-most of the above applies to openSUSE, but $SUBJECT applies as well to Stretch beginning with step 8, where text-to-speech manager opens and add talker is clicked. Querying voices exits almost as soon as it starts, returning the talker configuration window, which as in openSUSE, shows no voices selected or listed to select among. These are packages added by aptitude installing tdeaccessibility-trinity to the original installation:
libestools2.4:amd64 (1:2.4~release-2+b1)
festival (1:2.4~release-2+b2)
kbstate-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
kmag-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
kmousetool-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
kmouth-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
ksayit-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
kttsd-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
tde-icons-mono-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
tdeaccessibility-trinity (4:14.0.4~pre4-0debian9.0.0+1~a)
6-in both openSUSE and Stretch, the Text-to-Speech Manager's "General" tab shows "Enable Text-to-Speech System (KTTSD)" unchecked and uncheckable.
Comment 1 Felix Miata 2016-05-22 21:19:13 CDT
Created attachment 2663 [details]
screenshot - Text-to-Speech Manager general tab

"Enable" is inaccessible.
Comment 2 Felix Miata 2016-05-22 21:19:20 CDT
Created attachment 2664 [details]
screenshot - Text-to-Speech Manager Talkers tab

Scanning for voices always fails to find any.
Comment 3 Michele Calgaro 2016-05-23 00:13:18 CDT
For the records, KTTS working in some systems
(see http://trinity-users.pearsoncomputing.net/?0::10249)
Comment 4 deloptes 2016-05-23 01:47:25 CDT
can you 

1. list the relevant packages you have installed, please

example

dpkg -l | grep voice

2. try with iso8859-1 as encoding? I recall that most of them were utf incompetent

regards
Comment 5 Felix Miata 2016-05-23 02:51:53 CDT
(In reply to deloptes from comment #4)
> can you  
> 1. list the relevant packages you have installed, please

Before you asked I had already collected and input the package info as additional comments and was in process of collecting some additional info, and trying other things as I found possible clues:

Festival versions installed in or available to comment 0 installations:
Stretch: 2.4-2+b2
openSUSE 42.1 OSS repo: 2.4-3.3
openSUSE 42.1 KDE3 repo: 2.4-23.1

Maybe these are or contain clues:
1.Before I upgraded my friend's openSUSE x86_64 13.1/KDE3, TTS was working. Prior installed Festival version was 2.1-18.1. Post-update with TTS no longer working, installed version was 2.4-23.1. 2.1-18.1 was no longer available, but I was able to backlevel to 2.1-13.1, which restored TTS functionality. As double-check, I reinstalled 2.4-23.1, which again killed TTS. Reinstalling 2.1-13.1 again restored TTS. Package manager shows no installed packages with names containing the string "oice".
2.Festival version in Wheezy: 2.1-5.1
3.Festival version in LMDE 2 Betsy and Jessie: 2.1-8
4. https://bugzilla.opensuse.org/show_bug.cgi?id=793370 resolved fixed
Please disable festival support in kdeaccessibility3
5. https://bugzilla.opensuse.org/show_bug.cgi?id=867958 resolved wontfix
Make festival 2.1 compatible with old HTS voices

> dpkg -l | grep voice

In Stretch it produces null output.

In openSUSE, no installed package names contain string "oice". Voices are provided by the festival package and live in /usr/share/festival/voices/, same as in Stretch.
 
> 2. try with iso8859-1 as encoding? I recall that most of them were utf
> incompetent

NAICT, it's necessary to have voices selectable before being able to choose an encoding for them to use.
Comment 6 Felix Miata 2016-05-23 03:45:01 CDT
TTS is now working on my friend's Stretch installation. I have no idea what changed that allowed voices to be found. It's /etc/group file contains a voice line but no festival line. "systemctl list-unit-files | egrep 'oice|estiv'" and "systemctl list-units | egrep 'oice|estiv'" both produce null output.

On his openSUSE 42.1 installation, /etc/group contains a festival line but no voice line. "chkconfig -l" has a festival line but no voice line. Adding $USER to the festival group did not help. Festival was disabled across the board in chkconfig, but enabling didn't help. "systemctl list-units | egrep 'oice|estiv'" produced null output. "systemctl list-units | egrep 'oice|estiv'" produced festival.service. 'systemctl status festival.service' shows loaded/active. With Festival activated, KTTSMgr still cannot find any voices.

I tried copying the three ~/.trinity/share/config/ktts* from the Stretch /home userdir to the 42.1 /home userdir, which only had a httsdrc file of the three. This populated the talkers tab same as in Stretch, and made enable selected on the general tab, but when attempting to speak the clipboard, no sound results. Attempting to edit any of the voices on the talkers tab again produces a querying for available voices window that never finds anything or exits, which on canceling produces a talker configuration window with no voices from which to select (but with encoding ISO 8859-1 preselected).
Comment 7 Felix Miata 2016-05-24 01:44:31 CDT
I got sound working on openSUSE by backleveling Festival from 2.4 to 2.1. KDE3's KTTSMgr on openSUSE 13.2 and 13.1 also works only with 2.1. Whether the problem is festival itself (an openSUSE bug), or KTTSMgr's ability to use whatever festival version is available (a TDE bug), or maybe both, I have no idea how to determine.

openSUSE festival bug I just filed:
https://bugzilla.opensuse.org/show_bug.cgi?id=981271
KTTSMgr cannot use festival 2.4 in 13.1 or 13.2 or 42.1
Comment 8 deloptes 2016-05-24 07:00:21 CDT
I have this installed in debian jessie

dpkg -l | grep fest
ii  festival                               1:2.1~release-8                      amd64        General multi-lingual speech synthesis system
ii  festlex-cmu                            1.4.0-6                              all          CMU dictionary for Festival
ii  festlex-poslex                         1.4.0-5                              all          Part of speech lexicons and ngram from English
ii  festvox-kallpc16k                      1.4.0-5                              all          American English male speaker for festival, 16khz sample rate

and can confirm that KSayIt is working properly.
I had to just change the audio setting -> Alsa (default). It was auto set to aRts and this is not enabled in my setup.
Comment 9 Felix Miata 2016-05-24 10:25:26 CDT
This is from working Stretch host Easystreet:
dpkg -l | grep fest
ii  festival                              1:2.4~release-2+b2                   amd64        General multi-lingual speech synthesis system
ii  festlex-cmu                           1.4.0-8                              all          CMU dictionary for Festival
ii  festlex-poslex                        1.4.0-6                              all          Part of speech lexicons and ngram from English
ii  festvox-kallpc16k                     1.4.0-6                              all          American English male speaker for festival, 16khz sample rate

Non-working Stretch host big41 was missing festlex-cmu. Installing it resulted in KTTSMgr working as expected.