mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 11:19:28 +00:00
Added mod_ssml (speech synthesis markup language) ssml:// and tts:// file formats.
This commit is contained in:
parent
644cf2b11c
commit
5feca50770
@ -100,6 +100,7 @@ formats/mod_native_file
|
|||||||
#formats/mod_shell_stream
|
#formats/mod_shell_stream
|
||||||
#formats/mod_shout
|
#formats/mod_shout
|
||||||
formats/mod_sndfile
|
formats/mod_sndfile
|
||||||
|
#formats/mod_ssml
|
||||||
formats/mod_tone_stream
|
formats/mod_tone_stream
|
||||||
#formats/mod_vlc
|
#formats/mod_vlc
|
||||||
#languages/mod_java
|
#languages/mod_java
|
||||||
|
11
src/mod/formats/mod_ssml/Makefile
Normal file
11
src/mod/formats/mod_ssml/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
BASE=../../../..
|
||||||
|
|
||||||
|
IKS_DIR=$(BASE)/libs/iksemel
|
||||||
|
IKS_LA=$(IKS_DIR)/src/libiksemel.la
|
||||||
|
LOCAL_CFLAGS += -I$(BASE)/libs/iksemel/include
|
||||||
|
LOCAL_OBJS= $(IKS_LA)
|
||||||
|
include $(BASE)/build/modmake.rules
|
||||||
|
|
||||||
|
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||||
|
@cd $(IKS_DIR) && $(MAKE)
|
||||||
|
@$(TOUCH_TARGET)
|
26
src/mod/formats/mod_ssml/conf/autoload_configs/ssml.conf.xml
Normal file
26
src/mod/formats/mod_ssml/conf/autoload_configs/ssml.conf.xml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<configuration name="ssml.conf" description="SSML parser config">
|
||||||
|
|
||||||
|
<!-- voices in order of preference -->
|
||||||
|
<tts-voices>
|
||||||
|
<voice name="slt" language="en-US" gender="female" prefix="tts://flite|slt|"/>
|
||||||
|
<voice name="kal" language="en-US" gender="male" prefix="tts://flite|kal|"/>
|
||||||
|
<voice name="rms" language="en-US" gender="male" prefix="tts://flite|rms|"/>
|
||||||
|
<voice name="awb" language="en-US" gender="male" prefix="tts://flite|awb|"/>
|
||||||
|
</tts-voices>
|
||||||
|
|
||||||
|
<!-- maps ISO language to say module -->
|
||||||
|
<language-map>
|
||||||
|
<language iso="en-US" say-module="en" language="en"/>
|
||||||
|
</language-map>
|
||||||
|
|
||||||
|
<!-- say voices in order of preference -->
|
||||||
|
<say-voices>
|
||||||
|
<voice name="callie" language="en-US" gender="female" prefix="$${sounds_dir}/en/us/callie/"/>
|
||||||
|
</say-voices>
|
||||||
|
|
||||||
|
<!-- map interpret-as to say macros -->
|
||||||
|
<macros>
|
||||||
|
<macro name="cardinal" method="pronounced" type="number"/>
|
||||||
|
</macros>
|
||||||
|
|
||||||
|
</configuration>
|
1139
src/mod/formats/mod_ssml/mod_ssml.c
Normal file
1139
src/mod/formats/mod_ssml/mod_ssml.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user