<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
worked great, thank you<br>
<br>
On 6/24/2011 11:02 AM, Michael Collins wrote:
<blockquote
cite="mid:BANLkTimx23iyhi6kpZ5Xp22R7NsfZsuQgA@mail.gmail.com"
type="cite">Go look in conf/lang/en/en.xml. Near the top of that
file is a place to specify the default TTS engine and TTS voice
for your language. Try setting those to "flite" and "kal" or
whatever voice you are using.<br>
-MC<br>
<br>
<div class="gmail_quote">On Fri, Jun 24, 2011 at 8:57 AM, Wes <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:wes-fs@499x.com">wes-fs@499x.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> Thanks!... I took a
look, and got one working like this:<br>
<br>
<include> <!--This line will be ignored it's here
to validate the xml and is optional --><br>
<macro name="press_x_to_continue"><br>
<input pattern="^(\d+)$"><br>
<match><br>
<action
function="play-file" data="voicemail/vm-press.wav"/><br>
<action function="say"
data="$1" method="pronounced" type="items"/><br>
<action
function="play-file" data="voicemail/vm-continue.wav"/><br>
<action
function="speak-text" data="yo, you must press $1 to
continue, do it now"/><br>
</match><br>
</input><br>
</macro><br>
</include><br>
<br>
but when it got to the speak-text function, it gave this
error:<br>
<br>
2011-06-24 10:54:40.684627 [ERR] switch_core_speech.c:61
Invalid speech module [cepstral]!<br>
2011-06-24 10:54:40.684627 [ERR] switch_ivr_play_say.c:2377
Invalid TTS module!<br>
<br>
I have the flite engine active, so how do I configure
speak-text to try using the flite engine instead of
cepstral?
<div>
<div class="h5"><br>
<br>
<br>
On 6/22/2011 6:42 PM, Michael Collins wrote:
<blockquote type="cite">Have you researched the subject
of "phrase macros"? That may be your golden ticket. If
you have the FS book then look at the latter half of
ch 6. Otherwise check out these resources:
<div><a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_phrase"
target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_phrase</a></div>
<div>conf/lang/en/vm/sounds.xml</div>
<div>conf/lang/en/vm/tts.xml</div>
<div><br>
</div>
<div>The voicemail system uses phrase macros a ton,
and effectively, I might add. In short, phrase
macros let you piece together sound prompts, calls
to the say app, calls to the speak app, calls to the
sleep app, etc. I think you would be most interested
in the "speak-text" action.</div>
<div><br>
</div>
<div>-MC</div>
<div><br>
<br>
<div class="gmail_quote">On Wed, Jun 22, 2011 at
3:09 PM, Wes <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:wes-fs@499x.com" target="_blank">wes-fs@499x.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> or maybe
we just need a new version of this method
called "speakAndGetDigits" that specifically
takes a couple of string parameters for the
words to speak, instead of taking the location
of the wav files...
<div>
<div><br>
<br>
On 6/22/2011 4:13 PM, Wes wrote:
<blockquote type="cite"> Sorry, I was
thrown off by the dialplan example...
I'm trying to use speak... I changed my
example to try the speak command and I
still have the same issue with the
quotes.<br>
<br>
Is it possible to send in a "speak"
phrase as the phrase to use in the PAGD
command? Or do I have to record a wav
file and pass the name of the wave file
in for that parameter?<br>
<br>
On 6/22/2011 3:51 PM, Michael Collins
wrote:
<blockquote type="cite">Can you confirm:
are you trying to use TTS or the say
engine? These are two completely
different subjects. If you want to use
TTS then you need the "speak" app, not
the "say" app:
<div><a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_speak"
target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_speak</a></div>
<div><br>
</div>
<div>-MC<br>
<br>
<div class="gmail_quote">On Wed, Jun
22, 2011 at 12:53 PM, Wes <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:wes-fs@499x.com"
target="_blank">wes-fs@499x.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid
rgb(204, 204, 204);
padding-left: 1ex;"> I'm trying
to convert an example from a
dialplan:<br>
<br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits#Examples"
target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits#Examples</a><br>
<br>
<extension
name="play_and_get_digits with
say"><br>
<condition
field="destination_number"
expression="^(6500)$"><br>
<action
application="play_and_get_digits"
data="1 1 1 3000 # say:'press
one for technical support'
silence_stream://250 res \d+"
/><br>
</condition><br>
</extension><br>
<br>
into a lua statement like this:<br>
<br>
digits =
session:playAndGetDigits(1, 1,
1, 3000, "#", "say:'press one
for technicial support'<br>
", "say:'invalid entry'",
"\\d+")<br>
<br>
but I'm having trouble with the
quoting. The log says:<br>
<br>
2011-06-22 14:40:52.614654 [ERR]
switch_ivr_play_say.c:1144
Invalid Args<br>
<br>
I can't find any lua examples
that use both playAndGetDigits
and "say"<br>
<br>
any suggestions?<br>
<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug
9-11, Chicago<br>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a>
877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<pre><fieldset></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a moz-do-not-send="true"
href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
</body>
</html>