VOICEVOX-Engine / app.py
Jirat Jaturanpinyo
Update app.py
a8d20c1 verified
raw
history blame
658 Bytes
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'])