Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Phrases and speech


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
brian at freeswitch.org
Guest





PostPosted: Wed Oct 15, 2008 4:48 pm    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

At you wanting to do tts or mulilingual ivr?

/b

Sent from my iPhone

On Oct 15, 2008, at 12:30 PM, Noah Silverman <noah@allresearch.com>
wrote:

Quote:
Hi,

I have a question about setting up speech in FS...

I'm far away from the default config, so I just want to add the
MINIMUM amount necessary to my config to enable speech.

My goal is to have some basic functions like "You have 3 dollars and
27 cents left".

(Do I need to build the cepstral code and modules?)

Can anyone help me with a simple, clean few lines of XML in the config
to enable this?


Thanks,

-N

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Wed Oct 15, 2008 4:48 pm    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

Quote:
However I believe that
there are more elegant ways of handling dollar amounts when using the
"say" action. Brian, can you confirm if "say" handles currency and if
it
Quote:
handles dollars/cents with correct plural/singular values?

Check out http://wiki.freeswitch.org/wiki/Speech_Phrase_Management
Specifically the "saymoney" example
http://wiki.freeswitch.org/wiki/Speech_Phrase_Management#Dial_Plan_Sampl
es

It has an example of how it will say $851,920.11 to the caller. Rumor
has it that this amount reflects the amount of money that Anthony is
owed for all of the bounties he's been completed. Wink

HtH,
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
noah at allresearch.com
Guest





PostPosted: Wed Oct 15, 2008 4:48 pm    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

Hi,

I have a question about setting up speech in FS...

I'm far away from the default config, so I just want to add the
MINIMUM amount necessary to my config to enable speech.

My goal is to have some basic functions like "You have 3 dollars and
27 cents left".

(Do I need to build the cepstral code and modules?)

Can anyone help me with a simple, clean few lines of XML in the config
to enable this?


Thanks,

-N

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Wed Oct 15, 2008 4:48 pm    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

Quote:
I'm far away from the default config, so I just want to add the
MINIMUM amount necessary to my config to enable speech.

My goal is to have some basic functions like "You have 3 dollars and
27 cents left".

Here's a snippet that I would use to manually create the above phrase,
mixing TTS and pre-recorded prompts:

<macro name="ivr-speak-balance">
<input pattern="(.*)">
<match>
<action function="playfile" data="voicemail/you-have.wav"/>
<action function="execute" data="sleep(50)"/>
<action function="speak-text" data="${num_dollars}"/>
<action function="execute" data="sleep(50)"/>
<action function="playfile" data="currency/dollars.wav"/>
<action function="execute" data="sleep(50)"/>
<action function="playfile" data="currency/and.wav"/>
<action function="execute" data="sleep(50)"/>
<action function="speak-text" data="${num_cents}"/>
<action function="execute" data="sleep(50)"/>
<action function="playfile" data="currency/cents.wav"/>
<action function="execute" data="sleep(50)"/>
<!-- you need to supply this next file! -->
<action function="playfile" data="left.wav"/>
</match>
</input>
</macro>

That demonstrates the way you can build phrases. However I believe that
there are more elegant ways of handling dollar amounts when using the
"say" action. Brian, can you confirm if "say" handles currency and if it
handles dollars/cents with correct plural/singular values?

Note: the above snippet could be in a file but it would need to be
included via conf/lang/en/en.xml or otherwise inserted into your config
inside of the <language></language> tags for whichever language(s) you
are using...

Quote:

(Do I need to build the cepstral code and modules?)


If you are doing TTS then yes, you'll need Cepstral -OR- Flite, but not
both. You can build either one but don't enable them simultaneously on
modules.conf.xml or non-fun things will happen.

Quote:
Can anyone help me with a simple, clean few lines of XML in the config
to enable this?


Are you doing an IVR? Just confirming so that I can get a sense of what
you are trying to accomplish.

-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
noah at allresearch.com
Guest





PostPosted: Wed Oct 15, 2008 8:15 pm    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

I'm not sure what would be better. TTS is a nice idea if the quality
is good.

Do you have a preference or recommendation?

-N


On Oct 15, 2008, at 12:53 PM, Brian West wrote:

Quote:
At you wanting to do tts or mulilingual ivr?

/b

Sent from my iPhone

On Oct 15, 2008, at 12:30 PM, Noah Silverman <noah@allresearch.com>
wrote:

Quote:
Hi,

I have a question about setting up speech in FS...

I'm far away from the default config, so I just want to add the
MINIMUM amount necessary to my config to enable speech.

My goal is to have some basic functions like "You have 3 dollars and
27 cents left".

(Do I need to build the cepstral code and modules?)

Can anyone help me with a simple, clean few lines of XML in the
config
to enable this?


Thanks,

-N

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
noah at allresearch.com
Guest





PostPosted: Wed Oct 15, 2008 8:15 pm    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

Nice,

Do I have to build and/or install any additional modules?
It seems as if the demo relies on some macros that in turn rely on
specific language files. is there any more detail about working with
them.

For example, I see sound files in /usr/local/freeswitch/sounds/en/us/
callie/ascii/8000. Is this a good location, or do I need to move
them to somewhere that makes more sense? (I'm concerned about the
"8000" part of the path.)

Thanks,

-N


On Oct 15, 2008, at 1:33 PM, Michael Collins wrote:

Quote:
Quote:
However I believe that
there are more elegant ways of handling dollar amounts when using the
"say" action. Brian, can you confirm if "say" handles currency and if
it
Quote:
handles dollars/cents with correct plural/singular values?

Check out http://wiki.freeswitch.org/wiki/Speech_Phrase_Management
Specifically the "saymoney" example
http://wiki.freeswitch.org/wiki/Speech_Phrase_Management#Dial_Plan_Sampl
es

It has an example of how it will say $851,920.11 to the caller. Rumor
has it that this amount reflects the amount of money that Anthony is
owed for all of the bounties he's been completed. Wink

HtH,
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Oct 15, 2008 9:23 pm    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

On Oct 15, 2008, at 6:03 PM, Noah Silverman wrote:

Quote:
Nice,

Do I have to build and/or install any additional modules?
It seems as if the demo relies on some macros that in turn rely on
specific language files. is there any more detail about working with
them.

First off I would look at the demo-ivr.xml phrase macros.


Quote:


For example, I see sound files in /usr/local/freeswitch/sounds/en/us/
callie/ascii/8000. Is this a good location, or do I need to move
them to somewhere that makes more sense? (I'm concerned about the
"8000" part of the path.)

You can have files for all three rates we support 8000, 16000 and
32000..

example:

playback /usr/local/freeswith/sounds/test.wav

What we will do is look for /usr/local/freeswitch/sounds/$
{channel_rate}/test.wav

So if FreeSWITCH can't find a file to match the rate it will fall back
to /usr/local/freeswitch/sounds/test.wav

/b



Quote:


Thanks,

-N


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
noah at allresearch.com
Guest





PostPosted: Thu Oct 16, 2008 12:26 am    Post subject: [Freeswitch-users] Phrases and speech Reply with quote

Brian,

That really helped. I can now get FS to "say" some basic stuff.

Now I'm trying to play some specific sound files and am seeing an
error about unable to locate a file. It appears as if FS is not
appending the "en/us" part to the filename it is trying to open.

here are the relevant entries from the logfile:

switch_ivr_play_say.c:115 switch_ivr_phrase_macro() No language
specified - Using [en]
2008-10-15 22:07:04 [DEBUG] switch_ivr_play_say.c:260
switch_ivr_phrase_macro() Handle play-file:[voicemail/vm-youhave.wav]
(en:en)
2008-10-15 22:07:04 [ERR] mod_sndfile.c:175 sndfile_file_open() Error
Opening File [/usr/local/freeswitch/sounds/callie/voicemail/vm-
youhave.wav] [System error : No such file or directory.]

The actual file IS located at /usr/local/freeswitch/sounds/en/us/
callie/voicemail/8000/vm-youhave.wav

Any suggestions?

Thanks!!!

-N



On Oct 15, 2008, at 6:03 PM, Noah Silverman wrote:

Quote:
Nice,

Do I have to build and/or install any additional modules?
It seems as if the demo relies on some macros that in turn rely on
specific language files. is there any more detail about working with
them.

First off I would look at the demo-ivr.xml phrase macros.


Quote:


For example, I see sound files in /usr/local/freeswitch/sounds/en/us/
callie/ascii/8000. Is this a good location, or do I need to move
them to somewhere that makes more sense? (I'm concerned about the
"8000" part of the path.)

You can have files for all three rates we support 8000, 16000 and
32000..

example:

playback /usr/local/freeswith/sounds/test.wav

What we will do is look for /usr/local/freeswitch/sounds/$
{channel_rate}/test.wav

So if FreeSWITCH can't find a file to match the rate it will fall back
to /usr/local/freeswitch/sounds/test.wav

/b



Quote:


Thanks,

-N


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services