-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
47 lines (36 loc) · 1.16 KB
/
Makefile
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
# Makefile
VOICE_PACKAGE=ara_norm_ziad_hts
VOICE=ara_norm_ziad_hts
FESTIVAL_VOICES_DIR=/usr/share/festival/voices
FESTIVAL_LANGUAGES_DIR=/usr/share/festival/languages
MISHKAL=mishkal
all: test build
test:
echo "السَّلَامُ عَلَيْكُمْ" | text2wave -eval "(voice_$(VOICE))" -o /tmp/out.ar_ziad.wav
play /tmp/out.ar_ziad.wav
test_tashkeel:
$(MISHKAL) "مرحبا أهلا بكم" |text2wave -eval "(voice_$(VOICE))" -o /tmp/out.ar_ziad.wav
play /tmp/out.ar_ziad.wav
test_file:
$(MISHKAL) -f tests/samples/text1.txt |text2wave -eval "(voice_$(VOICE))" -o /tmp/out.ar_ziad.wav
play /tmp/out.ar_ziad.wav
tashkeel:
$(MISHKAL) "مرحبا أهلا بكم"
build:
install:
# Installing shared data
echo "install"
sudo cp languages/language_arabic.scm $(FESTIVAL_LANGUAGES_DIR)
cp releases/$(VOICE_PACKAGE).zip /tmp/
cd /tmp; unzip /tmp/$(VOICE_PACKAGE).zip
sudo mkdir -p $(FESTIVAL_VOICES_DIR)/arabic
sudo cp -r /tmp/$(VOICE_PACKAGE) $(FESTIVAL_VOICES_DIR)/arabic/
rm -r /tmp/$(VOICE_PACKAGE)
uninstall:
# Uninstalling shared data
# Uninstalling executables
clean:
distclean:
reinstall: uninstall install
publish:
git push origin master