-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.bat
95 lines (62 loc) · 1.38 KB
/
start.bat
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@echo off
REM clear the console
cls
:begin
REM print option menu
echo STTS script made by Lupiax
echo.
echo [1] Launch English STTS
echo [2] Launch Japanese STTS
echo [3] Install Voicevox Engine (docker)
echo [4] Start Voicevox Engine (docker)
echo [5] Get Audio Devices
echo [6] Exit
echo.
REM make the user select one option.
set choice=
set /p choice=Choose:
REM process selection
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto start_en
if '%choice%'=='2' goto start_jp
if '%choice%'=='3' goto install_voicevox
if '%choice%'=='4' goto start_voicevox
if '%choice%'=='5' goto get_devices
if '%choice%'=='6' goto script_exit
ECHO "%choice%" is not a valid choice, try again.
goto begin
:start_en
REM clear the console
cls
REM start the python script
python scripts/stts-en.py
:start_jp
REM clear the console
cls
REM start the python script
python scripts/stts-jp.py
:install_voicevox
call utils/install_voicevox.bat
REM clear the console
cls
goto begin
:start_voicevox
call utils\start_voicevox.bat
REM clear the console
cls
echo Started voicevox engine.
goto begin
:get_devices
REM clear the console
cls
python scripts/get_devices.py
pause
REM clear the console
cls
goto begin
:script_exit
REM clear the console
cls
ECHO exiting...
REM kill the program.
pause