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:
parent
5dc287f885
commit
e469a19e2a
@ -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
|
||||
|
@ -1,2 +0,0 @@
|
||||
Эта фича полностью подготавливает англоязычный вывод речи на базе
|
||||
сервера VoiceMan.
|
@ -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)
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
/bin/ln -s /etc/tts.d/espeak.voiceman /etc/voiceman.d/espeak.output
|
@ -1,2 +0,0 @@
|
||||
Эта фича полностью подготавливает русскоязычный вывод речи на базе
|
||||
сервера VoiceMan.
|
@ -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)
|
@ -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
|
@ -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
|
2
features.in/speech/README
Normal file
2
features.in/speech/README
Normal file
@ -0,0 +1,2 @@
|
||||
Эта фича полностью подготавливает русскоязычный или англоязычный
|
||||
вывод речи на базе сервера VoiceMan.
|
8
features.in/speech/config.mk
Normal file
8
features.in/speech/config.mk
Normal 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,$*)
|
15
features.in/speech/live/image-scripts.d/10-voiceman
Executable file
15
features.in/speech/live/image-scripts.d/10-voiceman
Executable 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
|
@ -1,3 +1,2 @@
|
||||
RHVoice
|
||||
textlus-rhvoice
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user