[Freeswitch-users] Speech Phrases

Michael Collins msc at freeswitch.org
Thu Feb 23 20:00:25 MSK 2012


Brian,

Are you sure you want the "say" application? The reason I ask is that the
say app does the stitching together of the digits, time, money, etc. Unless
you've re-recorded all the digits, etc. then I wouldn't even mess with the
say app. You probably want the playback app and the phrase files.

First thing: do you have the FreeSWITCH book? (The first one, that is.) I
wrote up a really nice tutorial on using phrase macros near the end of
chapter six. If you don't have the book then SHAME ON YOU! ;) Seriously,
snag it, because it will make us feel like we didn't waste 8 months of our
lives writing it. :P

Now, if you did indeed use your own voice and you created digit prompts,
letters, etc. and you do want the say app then you have two choices:
replace the default sounds with your voice, or create an alternate say
language and conf/lang config files. You could literally copy
src/mod/say/en/* and make src/mod/say/en_bdf/* and then copy conf/lang/en/*
and make conf/lang/en_bdf/*. Of course you'll need to edit some files:
mod_say_en.c (near the end, change the only occurrence of "en" to "en_bdf")
and conf/lang/en_bdf/en.xml you'll need to modify the line with
sound-prefix= to point to your sound set.)

Have fun!
-MC


On Wed, Feb 22, 2012 at 8:48 PM, Brian Foster <bdfoster at endigotech.com>wrote:

> I'm trying to figure out how phrases works in freeswitch, and I have a set
> of my own voices to use instead of the default ones. I've read
> http://wiki.freeswitch.org/wiki/Speech_Phrase_Management but I guess I'm
> not understanding correctly.
>
> Situation (might be easier to understand this way):
>
> Basically I have a set of prompts (they are actually in my voice) that I
> plan on using to read off addresses and such from a SIP message. Think
> "automated dispatching" for fire departments. A script might be:
>
> (fire tones)
> "Indianapolis Engine 123, Indianapolis Medic 123, 928 West Banta Road,
> Vehicle Fire" x2
> "Coordinates 3700 North, 1200 East, Assigned to Marion Ops 1"
>
> ...so that information would be set in some variables, like
> responding_units, address, incident_type, coordinates_1,
> coordinates_1_direction, coordinates_2, coordinates_2_direction, etc...
>
> So the million dollar question is, how do I (temporarily) get freeswitch
> to use my voice prompts instead of the default prompts when using the say
> command in the dialplan? Also, how should I organize those prompts so that
> freeswitch can find them?
> --
> Brian D. Foster
> Endigo Computer LLC
> Email: bdfoster at endigotech.com
> Phone: 317-429-1069
> Indianapolis, Indiana, USA
>
> This message contains confidential information and is intended for those
> listed in the "To:", "CC:", and/or "BCC:" fields of the message header.If
> you are not the intended recipient you are notified that disclosing,
> copying, distributing or taking any action in reliance on the contents of
> this information is strictly prohibited. E-mail transmission cannot be
> guaranteed to be secure or error-free as information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> The sender therefore does not accept liability for any errors or omissions
> in the contents of this message, which arise as a result of e-mail
> transmission. If verification is required please request a hard-copy
> version.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120223/c4ea5470/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list