File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # --------------------------------------------------------------------------------
2+
3+ Write-Host " Make sure that all these files are in one folder."
4+
5+ # --------------------------------------------------------------------------------
6+
7+ $FrameworkVer = Read-Host " Enter version of UnityNeuroSpeech(e.g. 1.0.0): "
8+
9+ # --------------------------------------------------------------------------------
10+
11+ $ScriptDir = Split-Path - Parent $MyInvocation.MyCommand.Definition
12+ $SevenZip = Join-Path $ScriptDir " 7z/7z.exe"
13+
14+ # --------------------------------------------------------------------------------
15+
16+ Write-Host " Unpacking "" UnityNeuroSpeech.$FrameworkVer .rar"" ..."
17+
18+ $UNSRar = Join-Path $ScriptDir " UnityNeuroSpeech.$FrameworkVer .rar"
19+ $UNSOut = $ScriptDir
20+
21+ & $SevenZip x $UNSRar - o" $UNSOut " - y > $null 2>&1
22+
23+ Write-Host " Done!"
24+
25+ # --------------------------------------------------------------------------------
26+
27+ Write-Host " Unpacking "" default.venv.rar"" ..."
28+
29+ $VenvRar = Join-Path $ScriptDir " default.venv.rar"
30+ $VenvOut = Join-Path $ScriptDir " UnityNeuroSpeech $FrameworkVer \Server"
31+
32+ & $SevenZip x $VenvRar - o" $VenvOut " - y > $null 2>&1
33+
34+ Write-Host " Done!"
35+
36+ # --------------------------------------------------------------------------------
37+
38+ Write-Host " Unpacking "" TTSModel.rar"" ..."
39+
40+ $TTSRar = Join-Path $ScriptDir " TTSModel.rar"
41+ $TTSOut = Join-Path $ScriptDir " UnityNeuroSpeech $FrameworkVer \Server"
42+
43+ & $SevenZip x $TTSRar - o" $TTSOut " - y > $null 2>&1
44+
45+ Write-Host " Done!"
46+
47+ # --------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1+ @ echo off
2+ powershell -NoProfile -ExecutionPolicy Bypass -File " %~dp0 setup.ps1"
3+ pause
You can’t perform that action at this time.
0 commit comments