[Freeswitch-users] Speak vs. StreamFile

grmt garmt.noname at gmail.com
Thu Sep 20 23:02:53 MSD 2012


If you still want to use TTS, you may want to cache your generated TTS, e.g.
http://www.tomp.co.uk/blog/view/23

Note that your TTS license may not allow you to do so ...

 

Alternatively, you can gain some cpu cycles by setting cache_speech_handles
to true in your dialplan.

e.g

<extension name="use_tts">

        <action application="set" data="cache_speech_handles=true"/>

  

               use tts

               use tts again

</extension>

 

Not sure how many cycles you will gain though.

 

Garmt

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Avi
Marcus
Sent: Thursday, September 20, 2012 20:00
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Speak vs. StreamFile

 

Give it a try... if you've got the volume, even better than wav is native
file: http://wiki.freeswitch.org/wiki/Mod_native_file


-Avi

 

On Thu, Sep 20, 2012 at 8:56 PM, Malay Thakershi <mthakershi at gmail.com>
wrote:

Hello,

 

I am working on optimizing call flow code. I use Cepstral as TTS from FS
managed module (C# .net code).

 

I suspect using Session.Speak is slowing down the call experience (prompt
delay) when there are # of concurrent calls.

 

My question: does it help with performance if I create WAV file for each
static prompt in advance and use Session.StreamFile instead of
Session.Speak?

 

Any help is appreciated.

 

Malay

 

 


_________________________________________________________________________
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/20120920/9abd6fc2/attachment-0001.html 


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