Hi again I'd like to configured my Asterisk to use german sounds for the "Say"-commands... I installed the sounds-files and I tried them with "Playback(de/demo-echodone)" and it works. Now I tried to add an extension to say the current time: exten => 24,1,Verbose(2,Time asked by ${CALLERID(num)}) Exten => 24,n,Set(CHANNEL(language)=de) Exten => 24,n,SayUnixTime() Exten => 24,n,Hangup But if I call the "24", it says the time in English... On the CLI I see: -- Executing [24 at default:2] Set("SIP/00493511111111-00000003", "CHANNEL(language)=de") in new stack -- Executing [24 at default:3] SayUnixTime("SIP/00493511111111-00000003", "") in new stack -- <SIP/00493511111111-00000003> Playing 'digits/day-0.gsm' (language 'de') -- <SIP/00493511111111-00000003> Playing 'digits/h-14.gsm' (language 'de') ... So, it seems, it would use the German sounds, but it doesn't... Has someone an explanation why it works so? Thanks Luca Bertoncello (lucabert at lucabert.de)
Hi, from voipinfo... If an Asterisk command specifies a sound file in a*subdirectory*, Asterisk looks in that subdirectory for the language subdirectory. For example, theSayDigits <http://www.voip-info.org/wiki/view/Asterisk+cmd+SayDigits>command may play the sound file "digits/6". Asterisk will, if the language code is "de", first look for /var/lib/asterisk/sounds/*digits/de/*6.gsm before falling back to /var/lib/asterisk/sounds/digits/6.gsm. Markus http://www.voip-info.org/wiki/view/Asterisk+multi-language Am 14.06.2015 um 09:36 schrieb Luca Bertoncello:> Hi again > > I'd like to configured my Asterisk to use german sounds for the > "Say"-commands... > > I installed the sounds-files and I tried them with > "Playback(de/demo-echodone)" and it works. > > Now I tried to add an extension to say the current time: > > exten => 24,1,Verbose(2,Time asked by ${CALLERID(num)}) > Exten => 24,n,Set(CHANNEL(language)=de) > Exten => 24,n,SayUnixTime() > Exten => 24,n,Hangup > > But if I call the "24", it says the time in English... > On the CLI I see: > > -- Executing [24 at default:2] Set("SIP/00493511111111-00000003", "CHANNEL(language)=de") in new stack > -- Executing [24 at default:3] SayUnixTime("SIP/00493511111111-00000003", "") in new stack > -- <SIP/00493511111111-00000003> Playing 'digits/day-0.gsm' (language 'de') > -- <SIP/00493511111111-00000003> Playing 'digits/h-14.gsm' (language 'de') > ... > > So, it seems, it would use the German sounds, but it doesn't... > Has someone an explanation why it works so? > > Thanks > Luca Bertoncello > (lucabert at lucabert.de) >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150614/ec154df5/attachment.html>
http://lmgtfy.com/?q=say.conf+asterisk+german+digits On 14-Jun-2015 1:06 PM, "Luca Bertoncello" <lucabert at lucabert.de> wrote:> Hi again > > I'd like to configured my Asterisk to use german sounds for the > "Say"-commands... > > I installed the sounds-files and I tried them with > "Playback(de/demo-echodone)" and it works. > > Now I tried to add an extension to say the current time: > > exten => 24,1,Verbose(2,Time asked by ${CALLERID(num)}) > Exten => 24,n,Set(CHANNEL(language)=de) > Exten => 24,n,SayUnixTime() > Exten => 24,n,Hangup > > But if I call the "24", it says the time in English... > On the CLI I see: > > -- Executing [24 at default:2] Set("SIP/00493511111111-00000003", > "CHANNEL(language)=de") in new stack > -- Executing [24 at default:3] > SayUnixTime("SIP/00493511111111-00000003", "") in new stack > -- <SIP/00493511111111-00000003> Playing 'digits/day-0.gsm' (language > 'de') > -- <SIP/00493511111111-00000003> Playing 'digits/h-14.gsm' (language > 'de') > ... > > So, it seems, it would use the German sounds, but it doesn't... > Has someone an explanation why it works so? > > Thanks > Luca Bertoncello > (lucabert at lucabert.de) > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150614/e71351a6/attachment.html>
Markus Weiler <markus_weiler at mailworks.org> schrieb: Hi> from voipinfo... > > If an Asterisk command specifies a sound file in a*subdirectory*, > Asterisk looks in that subdirectory for the language subdirectory. For > example, theSayDigits > <http://www.voip-info.org/wiki/view/Asterisk+cmd+SayDigits>command may > play the sound file "digits/6". Asterisk will, if the language code is > "de", first look for /var/lib/asterisk/sounds/*digits/de/*6.gsm before > falling back to /var/lib/asterisk/sounds/digits/6.gsm.Of course I read this page, but it does NOT work so... Right now I got it, using a new structure: /var/lib/asterisk/sounds/de/ /var/lib/asterisk/sounds/de/digits /var/lib/asterisk/sounds/de/letters /var/lib/asterisk/sounds/de/phonetics and it works... Regards Luca Bertoncello (lucabert at lucabert.de)
> Hi again > > I'd like to configured my Asterisk to use german sounds for the > "Say"-commands... >Generate your own German sound files, it's not difficult, but rather time consuming. A couple of years ago I suggested to donate my own files, but the problem were the license conditions of the text to speech software. If there is enough interest, I could contact the vendor again and ask about acceptable compensation. Of course, you and a few more must be willing to pay for the sound files. The sound quality of old gsm Amooma files is pretty bad, but I don't know from where you can get them and the old Pforzheim files are incomplete. jg