I know this is an old thread, but I found it while searching to resolve my problem:
Setting up Pico Text To Speech for Raspberry Pi OS Debian Buster
openHAB 2.5.6 Release Build, Iām using a RasPi 4 with an openHABian install.
The Log viewer kept on detailing 'Error while executing '[Ljava.lang.String;@3a9523'...'
and something like error 2 picotts2 file not available/found.
This is is how I solved it.
Edit āaddons.cfgā by adding picotts
to the voice services. Iām only using one service so my file has a line that looks like this:
voice = picotts
or via the Paper UI; select the āAdd-onsā menu, āVoiceā tab and select install Pico Text-to-Speech.
Unfortuately this is not all that is required the openHab documentation
says to install libttspico-utils
, but this does not work out of the box because there is a policy to not build contrib/non-free into Raspbian. See here
However the above site also documents a method to install libttspico-utils
that I quote below.
Login via SSH to your RasPi and type / cut and paste the following commads.
if you run into problem with needing to be root use sudo su root
for that command and use exit
to return to the openhabian user
wget -q https://ftp-master.debian.org/keys/release-10.asc -O- | apt-key add -
echo "deb http://deb.debian.org/debian buster non-free" >> /etc/apt/sources.list
apt-get update
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
apt-get install -f ./libttspico0_1.0+git20130326-9_armhf.deb ./libttspico-utils_1.0+git20130326-9_armhf.deb
This worked for me, try it if you are experiencing similar problems.
You can use the Console to test it out, this is documented here:
And how to use the console is documented here: