forked from Mirrors/freeswitch
315e7c14fc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5946 d0543943-73ff-0310-b7d9-9358b9ac24b2
72 lines
2.4 KiB
XML
72 lines
2.4 KiB
XML
<include><!--This line will be ignored it's here to validate the xml and is optional -->
|
|
<macro name="msgcount">
|
|
<input pattern="(.*)">
|
|
<match>
|
|
<action function="execute" data="sleep(1000)"/>
|
|
<action function="play-file" data="vm-youhave.wav"/>
|
|
<action function="say" data="$1" method="pronounced" type="items"/>
|
|
<action function="play-file" data="vm-messages.wav"/>
|
|
<!-- or -->
|
|
<!--<action function="speak-text" data="Sie haben $1 Nachrichten"/>-->
|
|
</match>
|
|
</input>
|
|
</macro>
|
|
<macro name="saydate">
|
|
<input pattern="(.*)">
|
|
<match>
|
|
<action function="say" data="$1" method="pronounced" type="current_date_time"/>
|
|
</match>
|
|
</input>
|
|
</macro>
|
|
<macro name="timespec">
|
|
<input pattern="(.*)">
|
|
<match>
|
|
<action function="say" data="$1" method="pronounced" type="time_measurement"/>
|
|
</match>
|
|
</input>
|
|
</macro>
|
|
<macro name="ip-addr">
|
|
<input pattern="(.*)">
|
|
<match>
|
|
<action function="say" data="$1" method="iterated" type="ip_address"/>
|
|
<action function="say" data="$1" method="pronounced" type="ip_address"/>
|
|
</match>
|
|
</input>
|
|
</macro>
|
|
<macro name="spell">
|
|
<input pattern="(.*)">
|
|
<match>
|
|
<action function="say" data="$1" method="pronounced" type="name_spelled"/>
|
|
</match>
|
|
</input>
|
|
</macro>
|
|
<macro name="spell-phonetic">
|
|
<input pattern="(.*)">
|
|
<match>
|
|
<action function="say" data="$1" method="pronounced" type="name_phonetic"/>
|
|
</match>
|
|
</input>
|
|
</macro>
|
|
<macro name="tts-timeleft">
|
|
<!-- The parser will visit each <input> tag and execute the actions in <match> or <nomatch> depending on the pattern param -->
|
|
<!-- If the function "break" is encountered all parsing will cease -->
|
|
<input pattern="(\d+):(\d+)">
|
|
<match>
|
|
<action function="speak-text" data="Sie haben $1 Minuten, $2 Sekunden übrig $strftime(%Y-%m-%d)"/>
|
|
<action function="break"/>
|
|
</match>
|
|
<nomatch>
|
|
<action function="speak-text" data="Die Eingabe war ungültig."/>
|
|
</nomatch>
|
|
</input>
|
|
<input pattern="(\d+) min (\d+) sek">
|
|
<match>
|
|
<action function="speak-text" data="Sie haben $1 Minuten, $2 Sekunden übrig $strftime(%Y-%m-%d)"/>
|
|
</match>
|
|
<nomatch>
|
|
<action function="speak-text" data="Die Eingabe war ungültig."/>
|
|
</nomatch>
|
|
</input>
|
|
</macro>
|
|
</include><!--This line will be ignored it's here to validate the xml and is optional -->
|