File size: 658 Bytes
3beaca3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a8d20c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import subprocess

# Download the voicevox engine archive
subprocess.run(['wget', 'https://github.com/VOICEVOX/voicevox_engine/releases/download/0.19.1/voicevox_engine-linux-cpu-0.19.1.7z.001'])

# Install p7zip to extract the .7z archive
subprocess.run(['apt-get', 'update', '-y'])
subprocess.run(['apt-get', 'install', '-y', 'p7zip-full'])

# Extract the archive
subprocess.run(['7z', 'x', 'voicevox_engine-linux-cpu-0.19.1.7z.001'])

# Clean up the downloaded archive
subprocess.run(['rm', 'voicevox_engine-linux-cpu-0.19.1.7z.001'])

# Clone voicevox engine repository
subprocess.run(['git', 'clone', 'https://github.com/VOICEVOX/voicevox_engine', '-q'])