Chris D
Posts: 89
Joined: Tue Sep 20, 2016 11:27 am

Installing PICO TTS - any helpful hints?

Wed Aug 15, 2018 10:54 am

Good morning,

I am planning to install PICO TTS. I asked google for some help and unfortunately, there is a lot of help and a lot of different ways people are suggestion - also, most of the information 2 years old or older. Has anyone recently installed PICO on a PI with stretch? If you have any suggestions or hints or links that are known to work, I would appreciate such information.

Thanks!

Chris D

hippy
Posts: 5770
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Installing PICO TTS - any helpful hints?

Wed Aug 15, 2018 11:54 am

I didn't realise there was a Pi port for Pico TTS and, as that's one of the better speech engines IMO, I thought I'd try it. Raspberry Pi 3B stretch; worked a treat for me ...

Code: Select all

sudo apt-get install libttspico-utils
pico2wave -w hello.wav "Hello from Raspberry Pi"

Chris D
Posts: 89
Joined: Tue Sep 20, 2016 11:27 am

Re: Installing PICO TTS - any helpful hints?

Thu Aug 16, 2018 9:40 am

Hippy,

Thanks for the response! I read so many "how to articles" most of them far more complex than that, and several stating that what you described would not work!

I will give it a go as soon as I get a chance.

Thanks again!

Chris D.

hippy
Posts: 5770
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Installing PICO TTS - any helpful hints?

Tue Aug 13, 2019 7:50 pm

hippy wrote:
Wed Aug 15, 2018 11:54 am
I didn't realise there was a Pi port for Pico TTS and, as that's one of the better speech engines IMO, I thought I'd try it. Raspberry Pi 3B stretch; worked a treat for me ...

Code: Select all

sudo apt-get install libttspico-utils
pico2wave -w hello.wav "Hello from Raspberry Pi"
But now it doesn't. Pi 3B, Buster. Does anyone know if it should be available, how to get it ...

Code: Select all

[email protected]:~ $ uname -a
Linux Pi3B 4.19.58-v7+ #1245 SMP Fri Jul 12 17:25:51 BST 2019 armv7l GNU/Linux
[email protected]:~ $ sudo 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

jerrm
Posts: 166
Joined: Wed May 02, 2018 7:35 pm

Re: Installing PICO TTS - any helpful hints?

Tue Aug 13, 2019 8:54 pm

hippy wrote:
Tue Aug 13, 2019 7:50 pm
hippy wrote:
Wed Aug 15, 2018 11:54 am
I didn't realise there was a Pi port for Pico TTS and, as that's one of the better speech engines IMO, I thought I'd try it. Raspberry Pi 3B stretch; worked a treat for me ...

Code: Select all

sudo apt-get install libttspico-utils
pico2wave -w hello.wav "Hello from Raspberry Pi"
But now it doesn't. Pi 3B, Buster. Does anyone know if it should be available, how to get it ...
I don't know if this was a change or if it existed in prior versions by mistake, but the response I got when posting an issue was that Debian "non-free" packages were not included in Raspbian.

But... it is easy to install the Debian armhf packages.

Option 1: Download and install the packages manually:

Code: Select all

wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico0_1.0+git20130326-9_armhf.deb
wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico-utils_1.0+git20130326-9_armhf.deb
sudo apt-get install -f ./libttspico0_1.0+git20130326-9_armhf.deb ./libttspico-utils_1.0+git20130326-9_armhf.deb


Option 2: Add the Debian non-free repo to apt sources and install normally:

Code: Select all

wget -q https://ftp-master.debian.org/keys/release-10.asc -O- | sudo apt-key add -
echo "deb http://deb.debian.org/debian buster non-free" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install libttspico-utils
Last edited by jerrm on Tue Aug 13, 2019 10:50 pm, edited 4 times in total.

hippy
Posts: 5770
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Installing PICO TTS - any helpful hints?

Tue Aug 13, 2019 9:51 pm

Thanks for the help. The first installed things as expected, then adding to sources.list and doing a normal apt-get install confirmed the latest libttspico-utils is installed.

And all works fine -- after I used 'pico2wave' rather than 'wave2pico' :oops:

Actually, just remembered, your ...

sudo wget -q https://ftp .... | apt-key add -

Had to have the sudo up at t'other end ...

wget -q https://ftp .... | sudo apt-key add -

jerrm
Posts: 166
Joined: Wed May 02, 2018 7:35 pm

Re: Installing PICO TTS - any helpful hints?

Tue Aug 13, 2019 10:46 pm

hippy wrote:
Tue Aug 13, 2019 9:51 pm
sudo wget -q https://ftp .... | apt-key add -

Had to have the sudo up at t'other end ...

wget -q https://ftp .... | sudo apt-key add -
Just corrected my post - so should be cut/paste ready for anyone else.

Putting the "sudos" in were and after the fact edit. I don't use sudo as a general rule. If i'm doing root-ish things, I'm at a root prompt.

dickon
Posts: 385
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: Installing PICO TTS - any helpful hints?

Tue Aug 13, 2019 10:53 pm

jerrm wrote:
Tue Aug 13, 2019 10:46 pm
Putting the "sudos" in were and after the fact edit. I don't use sudo as a general rule. If i'm doing root-ish things, I'm at a root prompt.
As far as I'm concerned, sudo has one application:

Code: Select all

sudo su -
It is for more or less entirely religious reasons that people subject themselves to it otherwise, AFAICT. If you need to do something as root, do it as root. If not, don't.

jerrm
Posts: 166
Joined: Wed May 02, 2018 7:35 pm

Re: Installing PICO TTS - any helpful hints?

Tue Aug 13, 2019 11:04 pm

dickon wrote:
Tue Aug 13, 2019 10:53 pm
It is for more or less entirely religious reasons that people subject themselves to it otherwise, AFAICT. If you need to do something as root, do it as root. If not, don't.
I have to agree. For the very occasional one off things it's OK, but the idea using sudo is "safer" is bogus. Folks get so use to prefixing everything with sudo, it offers no real benefit.

hippy
Posts: 5770
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Installing PICO TTS - any helpful hints?

Wed Aug 14, 2019 1:18 am

jerrm wrote:
Tue Aug 13, 2019 11:04 pm
Folks get so use to prefixing everything with sudo, it offers no real benefit.
Exactly that. So much of everything I do requires it that I just end up using it by default. At least I then know it's going to work first time. But I guess that comes down to what I use my Pi for; doing things which require sudo.

But I'm not sure things like apt-get update/upgrade needs to be sudo to start with because if I'm asking to keep my system updated that's what I want it to do.

Having to sudo raspi-config also seems bizarre - I want to reconfigure my system, ho hum, "must be run as root", yes, I really do want to reconfigure my system.

I can understand it on platforms where I am merely a user amongst many, but I'm an owner, sole user. But I've got used to it, now I just use it by rote.

dickon
Posts: 385
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: Installing PICO TTS - any helpful hints?

Wed Aug 14, 2019 8:30 am

In which case,

Code: Select all

PermitRootLogin yes
and be done with it.

Return to “General discussion”