[Freeswitch-users] How to use say_string

mayamatakeshi mayamatakeshi at gmail.com
Mon May 19 10:29:46 MSD 2014


Further search makes it clear that say_string will generate relative paths.
Then, FS will use some variables to resolve the absolute path:

sound_prefix = "/usr/local/freeswitch/sounds"
default_language = "en"

But what else needs to be set so that
  time/mon-4.wav
becomes something like:
  /usr/local/freeswitch/sounds/en/us/callie/time/8000/mon-4.wav
?



On Mon, May 19, 2014 at 1:12 PM, mayamatakeshi <mayamatakeshi at gmail.com>wrote:

> Hello,
> before I open a Jira ticket, as I might be overlooking something.
>
> I am trying to use say_string. Documentation is lacking so all we have is
> here:
> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_say
>
> But when I try to use it in the CLI i get:
>
> freeswitch at 192.168.2.154@internal> eval ${say_string en.wav en
> current_date_time pronounced ${strepoch()}}
>
> file_string://time/mon-4.wav!digits/19.wav!digits/2.wav!digits/thousand.wav!digits/14.wav!time/at.wav!digits/1.wav!time/oclock.wav!time/p-m.wav
>
> As we can see, say_string is not generating full path to the files so when
> i try to use it with application playback for example I get "FILE NOT
> FOUND" response from FS.
>
> The say application itself works, so I suspect this is a bug, but since
> this behaviour happens with both latest head
>
> commit 34807208c672ce1afbd5d4f2984b5fddafe701c9
> Author: Steve Underwood <steveu at coppice.org>
> Date:   Sat May 17 14:28:58 2014 +0800
>
> and a very old commit that I have in another machine:
>
> commit 1aa910339adb6f39df190137af439e34774908bd
> Author: Jeff Lenk <jeff at jefflenk.com>
> Date:   Thu Mar 1 15:55:32 2012 -0600
>
> I am inclined to think I am missing some configuration for this to work.
>
> Regards,
> Takeshi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140519/a289d9c1/attachment.html 


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