SOLVED SVOX Pico TTS for Asterisk

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
@steven: Can't seem to get this working on the 64-bit CentOS/SL platform. All sorts of wrinkles running pico2wave. Any ideas??
 

jmcguirl

Veteran Member
Joined
Dec 3, 2010
Messages
28
Reaction score
0
just tried installing following the NV article. when testing I get:

pico2wave --wave sample.wav -l en-US "Here is a sample, using the PICO text to speech engine."
pico2wave: error while loading shared libraries: libttspico.so.0: cannot open shared object file: No such file or directory

locate libttspico.so
/usr/lib/libttspico.so.0
/usr/lib/libttspico.so.0.0.0

I'm at a loss on what to do.
 

jmcguirl

Veteran Member
Joined
Dec 3, 2010
Messages
28
Reaction score
0
ok just ran:
/sbin/ldconfig -v

now I'm getting:
pico2wave --wave sample.wav -l en-US "Here is a sample, using the PICO text to speech engine."
pico2wave: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by pico2wave)
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
@Wward -- is Pico replacing flite going forward?

Thanks leon
 

retrohunter

New Member
Joined
Feb 13, 2016
Messages
1
Reaction score
1
ok just ran:
/sbin/ldconfig -v

now I'm getting:
pico2wave --wave sample.wav -l en-US "Here is a sample, using the PICO text to speech engine."
pico2wave: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by pico2wave)

I think you're almost there...

Three things i had to do to get it to work on.CentOS 7.1 64:
  1. Copied the 0.0.0 lib in the /lib64 directory
  2. Recreated the .0 symlink in the /lib64 directory
  3. Changed the permissions to be 755.
 

w1ve

Guru
Joined
Nov 15, 2007
Messages
819
Reaction score
218
trying to install using the NV article on Ubuntu 14,04
Get:

apt-get install libttspico-utils

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package libttspico-utils is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source


E: Package 'libttspico-utils' has no installation candidate
 

gibby13

New Member
Joined
Dec 22, 2015
Messages
3
Reaction score
0
Subscribing...

Did this on CentOS 6.7 64bit and getting the same GLIBC error...
Code:
pico2wave: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by pico2wave)
 

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
I have Pico TTS working under 64 bit for both CentOS 7 AND Centos 6.7.

CentOS 7 64bit has an easy fix - as mentioned above, just move the library files from /usr/lib to /usr/lib64. After the install execute:
Code:
mv /usr/lib/libttspico.so.0* /usr/lib64/


CentOS 6.7 64bit
is more problematic. The issue is the version of glibc under 6.7 is too old for the pico 64bit binaries.

The workaround is to install the 32 bit version of pico.

The following assumes pico tts has already been installed once per @wardmundy's Nerd Vittles tutorial:
Code:
# first we need to remove the 64 bit binaries
rm /usr/bin/pico2wave
rm /usr/lib/libttspico.so.0*

# now modify the install script to force 32 bit and run it
# the original script is left untouched
cd /root
sed "s|amd64|i386|" picotts-install.sh  | bash

# install the 32bit version of the popt package dependency
yum -y install popt.i686

# clean up the download folders
rm -rf /usr/src/libttspico

# test it
pico2wave --wave=sample32.wav -l en-US "This is a test of the 32 bit pico engine." && echo SUCCESS
 
Last edited:

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
trying to install using the NV article on Ubuntu 14,04
Get:

apt-get install libttspico-utils

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package libttspico-utils is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source


E: Package 'libttspico-utils' has no installation candidate

Here is your solution.
 

Adebayo

New Member
Joined
Jan 17, 2017
Messages
1
Reaction score
0
Hi all. I installed PicoTTS and works fine even in Italian. I noticed a couple of things:
1) picotts.agi at speed 1 is as fast as googletss.agi at speed 1,5
2) picospeaker utility outputs a file that doesn't need normalization; googletts-cli used to output a file at a very lower volume.

On an old distro (CentOS 5.8 - Asterisk 1.6) I had to modify install script because tar utility was unable to manage xz.
Here's the modified picotts-install.sh script, if someone faced the same problem:


Code:
#!/bin/bash

# Installer for SVOX Pico TTS on non-Debian platforms
# Author: Steven Mirabito <[email protected]>

# Check architechure
if [ $(uname -m) == 'x86_64' ]; then
    pkgarch="amd64"
else
    pkgarch="i386"
fi

# Get work directories set up
cd /usr/src
mkdir libttspico

# Download and extract Pico TTS libraries
wget http://mirrors.kernel.org/ubuntu/pool/multiverse/s/svox/libttspico0_1.0%2bgit20130326-3_${pkgarch}.deb
ar x libttspico0_1.0+git20130326-3_${pkgarch}.deb data.tar.xz
unxz data.tar.xz
tar -xf data.tar -C "libttspico"
rm -f data.tar

# Dowload and extract Pico TTS voice data
wget http://mirrors.kernel.org/ubuntu/pool/multiverse/s/svox/libttspico-data_1.0%2bgit20130326-3_all.deb
ar x libttspico-data_1.0+git20130326-3_all.deb data.tar.xz
unxz data.tar.xz
tar -xf data.tar -C "libttspico"
rm -f data.tar

# Download and extract Pico TTS utilities (pico2wave)
wget http://mirrors.kernel.org/ubuntu/pool/multiverse/s/svox/libttspico-utils_1.0%2bgit20130326-3_${pkgarch}.deb
ar x libttspico-utils_1.0+git20130326-3_${pkgarch}.deb data.tar.xz
unxz data.tar.xz
tar -xf data.tar -C "libttspico"
rm -f data.tar

# Delete packages
rm -f libttspico*.deb

# Move files into place
mv "libttspico/usr/lib/"*-linux-gnu/* "libttspico/usr/lib"
rmdir "libttspico/usr/lib/"*-linux-gnu
mv libttspico/usr/bin/* /usr/bin/
mv libttspico/usr/lib/* /usr/lib/
mv libttspico/usr/share/pico /usr/share/
mv libttspico/usr/share/doc/* /usr/share/doc/
mv libttspico/usr/share/man/man1/* /usr/share/man/man1/

# Install picospeaker
cd /usr/src
git clone git://github.com/the-kyle/picospeaker.git picospeaker
install -D -m755 picospeaker/picospeaker /usr/bin/picospeaker
rm -rf picospeaker

Dave
Hi Dave, I used this script but not working......
I got an error saying: unxz: command not found.
I'm trying to install pico tts on centos-release-5-9.el5.centos.1
uname -m = i686
uname -a = Linux elastix 2.6.18-348.1.1.el5 #1 SMP Tue Jan 22 16:24:03 EST 2013 i686 i686 i386 GNU/Linux
 

aerodesliza

New Member
Joined
Jun 2, 2016
Messages
3
Reaction score
0
Hi everyone,
I'm trying to make PICOTTS to work.

I was having this error message:
pico2wave: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by pico2wave)

After that I tried to install PICOTTS 32 bit but it didn't work. Now I geeting this error message:
pico2wave --wave=sample32.wav -l en-US "This is a test of the 32 bit pico engine." && echo SUCCESS
-bash: /usr/bin/pico2wave: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@ip-10-0-0-58 ~]# apt-get install libttspico-utils
-bash: apt-get: command not found

Any ideas?
Regards
 

aerodesliza

New Member
Joined
Jun 2, 2016
Messages
3
Reaction score
0
I have found the information below.
Look like PICOTTS won't work on CENTOS 5.5, it will required a higher version. Right now won't be able to upgrade Centos so I'm strewed....:(

https://www.centos.org/forums/viewtopic.php?t=57881:

Re: /lib64/libc.so.6: version `GLIBC_2.14' not found and /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15'
Postby TrevorH » 2016/05/20 21:06:26

Since you are running CentOS 6 not 7, I have moved your post to the correct forum.
CentOS 6 uses glibc 2.12 so those errors are to be expected if you try to run something compiled for a more recent glibc version. The solution is either to get the correct application built for use on glibc 2.12 or to use CentOS 7 which has glibc 2.17.
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,629
Reaction score
520
For Raspberry Pi Raspbian, here's the modified Incredible PBX installer:
Code:
cd /
wget http://incrediblepbx.com/picotts-raspi.tar.gz
tar zxvf picotts-raspi.tar.gz
rm -f picotts-raspi.tar.gz
cd /root
echo "Installing Pico TTS..."
./picotts-install.sh

Luckily I had already fixed the TTS language code from en to en-GB in extensions_custom.conf; but if you have a need to convert @wardmundy recipe above to en-GB use this script:
Bash:
#!/bin/bash
cd /
wget http://incrediblepbx.com/picotts-raspi.tar.gz
tar zxvf picotts-raspi.tar.gz
rm -f picotts-raspi.tar.gz
cd /root
echo "Installing Pico TTS..."
./picotts-install.sh
echo " "
echo "To change TTS language post-install to  en-GB
read -p "Press Enter to proceed with en-GB.   Otherwise, Ctrl-C to use en-US (default)."
echo " "
sed -i 's|en-US)|en-GB)|' /etc/asterisk/extensions_custom.conf
sed -i 's|pound key|hash key|' /etc/asterisk/extensions_custom.conf

as an observation - the install includes a downgrade of libttspico-*
Code:
## observation only:
dpkg: warning: downgrading libttspico-data from 1.0+git20130326-9 to 1.0+git20110131-2
dpkg: warning: downgrading libttspico0:armhf from 1.0+git20130326-9 to 1.0+git20110131-2
dpkg: warning: downgrading libttspico-utils from 1.0+git20130326-9 to 1.0+git20110131-2
 
Last edited:

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,629
Reaction score
520
sox test16000.wav -r 8000 test8000.wav
en-GB test used your code but then converted to mp3 to keep "Attach Files" happy. added 0.7 seconds of silence at start of the 8k.wav
 

Attachments

  • this-call-may-be-recorded-8000-2.mp3
    2.9 KB

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top