Commit
·
5f366d4
1
Parent(s):
3679751
yali-lower scripts for gradint
Browse filesgit-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/yali-lower@1038 29193198-4895-4776-b068-10539e920549
- COPYING +15 -0
- Makefile +14 -0
- README +10 -0
- setup.bat +29 -0
- unzipsfx.exe +0 -0
- yali-exe-readme.txt +24 -0
COPYING
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
These syllables were recorded in context by
|
| 2 |
+
Cheng Ya Li for the Gradint program in June
|
| 3 |
+
2008. Sound editing was done by Cameron Wong
|
| 4 |
+
(developer of the Ekho speech synthesizer) and
|
| 5 |
+
Silas Brown, using Audacity and Praat.
|
| 6 |
+
|
| 7 |
+
You can redistribute and/or modify these recordings under the terms of
|
| 8 |
+
the GNU General Public License as published by the Free Software
|
| 9 |
+
Foundation; either version 3 of the License, or (at your option) any
|
| 10 |
+
later version.
|
| 11 |
+
|
| 12 |
+
These recordings are distributed in the hope that they will be useful,
|
| 13 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 14 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 15 |
+
General Public License for more details.
|
Makefile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
RawParams=-r 44100 -c 1 -s -2
|
| 2 |
+
|
| 3 |
+
yali-lower.exe: wav-syllables setup.bat yali-exe-readme.txt unzipsfx.exe
|
| 4 |
+
mkdir -p partials/zh/yali-low
|
| 5 |
+
cd wav-syllables ; for N in *.wav ; do sox $$N $(RawParams) ../partials/zh/yali-low/$$(echo $$N|sed -e s/wav/raw/); done; cd ..
|
| 6 |
+
cp wav-syllables/\!* partials/zh/yali-low/
|
| 7 |
+
sox -t raw $(RawParams) /dev/null -t wav - 2>/dev/null | cat > partials/header.wav
|
| 8 |
+
cp yali-exe-readme.txt partials/README.txt
|
| 9 |
+
for N in setup.bat partials/README.txt ; do python -c "import sys; sys.stdout.write(sys.stdin.read().replace('\r','').replace('\n','\r\n'))" < $$N > n && mv n $$N; done
|
| 10 |
+
find setup.bat partials -type f | sort | zip -q -9 yali-lower.zip -@
|
| 11 |
+
echo '$$AUTORUN$$>setup.bat' | zip -z yali-lower.zip
|
| 12 |
+
cat unzipsfx.exe yali-lower.zip > yali-lower.exe
|
| 13 |
+
zip -A yali-lower.exe
|
| 14 |
+
rm -rf partials yali-lower.zip
|
README
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
yali-lower.exe is a zip file that must be
|
| 2 |
+
compatible with unzip on non-Windows platforms
|
| 3 |
+
as well as being self-extracting.
|
| 4 |
+
|
| 5 |
+
unzipsfx.exe is a Win32 build of unzipsfx
|
| 6 |
+
(cross-compiled with Mingw32) with
|
| 7 |
+
CHEAP_SFX_AUTORUN defined, and hacked process.c
|
| 8 |
+
so it doesn't confirm the Auto-run command.
|
| 9 |
+
|
| 10 |
+
Use 'make' to makke a new yali-lower.exe from the WAVs.
|
setup.bat
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
|
| 3 |
+
if exist gradint-wrapper.exe goto alreadyInRightDir
|
| 4 |
+
|
| 5 |
+
rem find where gradint is
|
| 6 |
+
if not exist "%HOMEDRIVE%%HOMEPATH%" set HOMEDRIVE=C:
|
| 7 |
+
if not exist "%HOMEDRIVE%%HOMEPATH%" set HOMEPATH="\Program Files"
|
| 8 |
+
if not exist "%USERPROFILE%" set USERPROFILE="C:\WINDOWS"
|
| 9 |
+
|
| 10 |
+
if not exist "%HOMEDRIVE%%HOMEPATH%\gradint" mkdir "%HOMEDRIVE%%HOMEPATH%\gradint"
|
| 11 |
+
rem (allow install before gradint is installed)
|
| 12 |
+
|
| 13 |
+
if exist "%HOMEDRIVE%%HOMEPATH%\gradint\partials" goto copy
|
| 14 |
+
rem see if we have the XP general directory-move command (probably won't work on 95 or Vista)
|
| 15 |
+
move partials "%HOMEDRIVE%%HOMEPATH%\gradint\partials"
|
| 16 |
+
if errorlevel 1 goto copy
|
| 17 |
+
goto alreadyInRightDir
|
| 18 |
+
:copy
|
| 19 |
+
xcopy /Y partials "%HOMEDRIVE%%HOMEPATH%\gradint\partials\" /S
|
| 20 |
+
rmdir partials /S /Q
|
| 21 |
+
:alreadyInRightDir
|
| 22 |
+
rem restart gradint
|
| 23 |
+
tskill gradint-wrapper 2>nul
|
| 24 |
+
taskkill /f /im gradint-wrapper.exe 2>nul >nul
|
| 25 |
+
pushd "%HOMEDRIVE%%HOMEPATH%\gradint"
|
| 26 |
+
if exist gradint-wrapper.exe start gradint-wrapper.exe once_per_day=2
|
| 27 |
+
popd
|
| 28 |
+
:end
|
| 29 |
+
del setup.bat
|
unzipsfx.exe
ADDED
|
Binary file (49.2 kB). View file
|
|
|
yali-exe-readme.txt
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
These syllables were recorded in context by
|
| 2 |
+
Cheng Ya Li for the Gradint program in June
|
| 3 |
+
2008. Sound editing was done by Cameron Wong
|
| 4 |
+
(developer of the Ekho speech synthesizer) and
|
| 5 |
+
Silas Brown, using Audacity and Praat.
|
| 6 |
+
|
| 7 |
+
(The yali-low version has been voice-changed to reduce the pitch.)
|
| 8 |
+
|
| 9 |
+
You can redistribute and/or modify these recordings under the terms of
|
| 10 |
+
the GNU General Public License as published by the Free Software
|
| 11 |
+
Foundation; either version 3 of the License, or (at your option) any
|
| 12 |
+
later version.
|
| 13 |
+
|
| 14 |
+
These recordings are distributed in the hope that they will be useful,
|
| 15 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 16 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 17 |
+
General Public License for more details.
|
| 18 |
+
|
| 19 |
+
If you are running on Linux on a solid-state device (OLPC XO, NSLU2, etc),
|
| 20 |
+
you probably don't want Gradint to have to concatenate these files to make a
|
| 21 |
+
custom WAV for each phrase. Linux is usually good enough for Gradint not to
|
| 22 |
+
have to do this, in which case you can convert them back to WAV by doing:
|
| 23 |
+
|
| 24 |
+
for N in zh/yali-low/*.raw ; do sox -t raw -r 44100 -s -2 $N $(echo $N|sed -e s/raw$/wav/) && rm $N; done && rm header.wav
|