[Freeswitch-users] Speak vs. StreamFile

Ben Langfeld ben at langfeld.co.uk
Fri Sep 21 12:19:31 MSD 2012


Well, remembering that TTS requires per-channel licensing, I would say
avoid using it where possible to increase your call density per TTS channel
license.

Regards,
Ben Langfeld


On 21 September 2012 01:16, Malay Thakershi <mthakershi at gmail.com> wrote:

> Thanks for responses. I will try these options.
>
> But considering design internals of FS,
> what do you think is more efficient for playing a static audio file - TTS
> or WAV file on disk?
>
> On Thu, Sep 20, 2012 at 2:02 PM, grmt <garmt.noname at gmail.com> wrote:
>
>> 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****
>>
>> ** **
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
> _________________________________________________________________________
> 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/20120921/91e66ff7/attachment.html 


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