[Freeswitch-users] Feature request/suggestion - "say" w/ tts_engine backing

Nathan Neulinger nneul at mst.edu
Mon Aug 17 21:23:14 MSD 2015


Not sure I see what you're meaning... That has calls to 'speak-text', which just calls TTS directly, without any of the 
'smarts' of 'say'.

I can currently do this:

         <action application="speak" data="Hi, the number you are calling from"/>
         <action application="say" data="en name_spelled iterated ${caller_id_number}"/>
         <action application="playback" data="silence_stream://100"/>
         <action application="speak" data="is blocked to this extension. Goodbye."/>

which uses the already defined tts_engine/tts_voice to provide the audio for the other text (in the speak calls), but 
the iterated audio of caller id number is spoken by Callie via mod_say_en. Similar for the other functions in say - for 
currency, counts, ip addresses, etc.

In that scenario, the voice will be different.

I suppose I could create a new sounds directory, prepopulated with all of the phrases spoken by Callie based on the 
phrases.en, and then set sound_prefix ahead of time, at which point the voice would match up, but seems like the grammar 
portion of say could be useful to be able to use generically without having to prepopulate the content. Negative is that 
given that MOST of those sounds would not be used, it's a bunch of excess calls to the TTS engine to pregenerate for not 
a lot of benefit.

-- Nathan

On 08/17/2015 11:45 AM, Brian West wrote:
> You should already be able to do this,
>
> see conf/vanilla/lang/en/vm/tts.xml
>
>
>
> On Mon, Aug 17, 2015 at 11:34 AM, Nathan Neulinger <nneul at mst.edu <mailto:nneul at mst.edu>> wrote:
>
>     It would be useful to be able to leverage the functionality of say - for smart parsing/breaking up of the text, but to
>     request that it use the setting for 'tts_engine' to actually get the audio instead of using the recorded files.
>
>     Implementation possibility:
>
>              Allow specifying a 'voice' for say via a separate variable (so as to not change the calling convention) -
>     to specify
>     the prefix directory it searches in for audio files.
>              If the desired file isn't present, fall back to generating the words with the configured tts engine.
>              (optional, selectable?) Cache the resulting generated word/phrase for future reuse
>
>     -- Nathan
>
>     ------------------------------------------------------------
>     Nathan Neulinger nneul at mst.edu <mailto:nneul at mst.edu>
>     Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412>
>     System Administrator - Architect
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://confluence.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org <mailto: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
>
>
>
>
> --
>
> */Brian West/*
> brian at freeswitch.org <mailto:brian at freeswitch.org>
>
>
> */Twitter: @FreeSWITCH , @briankwest/*
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>

-- 
------------------------------------------------------------
Nathan Neulinger                       nneul at mst.edu
Missouri S&T Information Technology    (573) 612-1412
System Administrator - Architect



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list