forked from roramirez/asterisk-picotts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
picotts-install.sh
54 lines (44 loc) · 1.64 KB
/
picotts-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/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
tar -xf data.tar.xz -C "libttspico"
rm -f data.tar.xz
# 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
tar -xf data.tar.xz -C "libttspico"
rm -f data.tar.xz
# 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
tar -xf data.tar.xz -C "libttspico"
rm -f data.tar.xz
# 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/
# Load new libraries
ldconfig
# Install picospeaker
cd /usr/src
git clone https://gitlab.com/ky1e/picospeaker.git picospeaker
install -D -m755 picospeaker/picospeaker /usr/bin/picospeaker
rm -rf picospeaker