speech-*: refactored and unified

These two features were largely an internal fork,
let's refactor them into a single tunable one.
This commit is contained in:
Michael Shigorin 2013-11-22 16:28:52 +04:00
parent 5dc287f885
commit e469a19e2a
13 changed files with 27 additions and 37 deletions

View File

@ -1,6 +1,6 @@
ifeq (distro,$(IMAGE_CLASS))
distro/homeros-mini: distro/.live-base use/live/textinstall use/homeros use/speech-en; @:
distro/homeros-mini: distro/.live-base use/live/textinstall \
use/homeros use/speech/en use/isohybrid; @:
endif

View File

@ -1,2 +0,0 @@
Эта фича полностью подготавливает англоязычный вывод речи на базе
сервера VoiceMan.

View File

@ -1,5 +0,0 @@
use/speech-en:
@$(call add_feature)
@$(call add,THE_LISTS,speech/voiceman)
@$(call add,THE_LISTS,speech/en)
@$(call add,DEFAULT_SERVICES_ENABLE,voiceman)

View File

@ -1,3 +0,0 @@
#!/bin/sh -e
/bin/ln -s /etc/tts.d/espeak.voiceman /etc/voiceman.d/espeak.output

View File

@ -1,2 +0,0 @@
Эта фича полностью подготавливает русскоязычный вывод речи на базе
сервера VoiceMan.

View File

@ -1,5 +0,0 @@
use/speech-ru:
@$(call add_feature)
@$(call add,THE_LISTS,speech/voiceman)
@$(call add,THE_LISTS,speech/ru)
@$(call add,DEFAULT_SERVICES_ENABLE,voiceman)

View File

@ -1,13 +0,0 @@
#!/bin/sh
cat <<EOF > /etc/rc.d/rc.local
#!/bin/sh
amixer set Master 75%
amixer set Master toggle
amixer set PCM 75%
amixer set PCM toggle
EOF
chmod 755 /etc/rc.d/rc.local

View File

@ -1,4 +0,0 @@
#!/bin/sh -e
/bin/ln -s /etc/tts.d/rhvoice-en.voiceman /etc/voiceman.d/rhvoice-en.output
/bin/ln -s /etc/tts.d/rhvoice.voiceman /etc/voiceman.d/rhvoice.output

View File

@ -0,0 +1,2 @@
Эта фича полностью подготавливает русскоязычный или англоязычный
вывод речи на базе сервера VoiceMan.

View File

@ -0,0 +1,8 @@
use/speech:
@$(call add_feature)
@$(call add,THE_LISTS,speech/voiceman speech/$$(SPEECH_LANG))
@$(call add,DEFAULT_SERVICES_ENABLE,voiceman)
@$(call xport,SPEECH_LANG)
use/speech/en use/speech/ru: use/speech/%: use/speech
@$(call set,SPEECH_LANG,$*)

View File

@ -0,0 +1,15 @@
#!/bin/sh -e
case "$GLOBAL_SPEECH_LANG" in
en)
ln -s ../tts.d/espeak.voiceman /etc/voiceman.d/espeak.output
;;
ru)
ln -s ../tts.d/rhvoice-en.voiceman /etc/voiceman.d/rhvoice-en.output
ln -s ../tts.d/rhvoice.voiceman /etc/voiceman.d/rhvoice.output
;;
*)
echo "** error: speech feature used with no language chosen" >&2
exit 1
;;
esac

View File

@ -1,3 +1,2 @@
RHVoice
textlus-rhvoice