Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Carlos Chavez
 
 Sorry, 'mx' isn't yet supported - it will default to 'en'
 
 What quick fix would you like?
 'mx' going to 'es'
 or
 'mx' being a separate set of functions with the same syntax as 'es'
 
 It is easy for me to knock-up a patch for either scenario  post it 
 to the Bugtracker. If it works for you, it'll probably get added to 
 CVS quickly at the current rate...
 
 Here in Mexico we use the same tones as in the US.  In indications.conf I
simply copied the [us] section and labeled it [mx].  In the general section I
put country=mx.

 Since we do not share the same tones as Spain I thought it would be
better to use a different setting than es.  But maybe I got confused and I
can set language=es and country=mx without there being a problem.

 By the way, is there a solution for saying numbers in spanish?  The
problem I have is that numbers like 100 (cien) do not sound correctly when
concatenated to other numbers.  When you have to say 101 the 100 sound changes
to: ciento uno.

 Thank you for your help.


--
Carlos Chavez
Computer Engineer, CCNA
Telecomunicaciones Abiertas de México S.A. de C.V.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Fran Boon
Fran Boon wrote:
Carlos Chavez wrote:
http://bugs.digium.com/bug_view_page.php?bug_id=0001097
This bug has been fixed in current CVS HEAD (not by using the patch 
in this BugID, though).
 I updated from CVS as you suggested but somehow things are worse 
now. Now ALL sounds are in english.  I checked my configuration files 
and I have language=mx in my sip.conf and zapata.conf. 
I noticed that  /etc/zaptel.conf
has a defaultzone=us, could this be affecting the new version of 
Asterisk?  It was working before I upgraded.
Sorry, 'mx' isn't yet supported - it will default to 'en'
Actually, looking at this again, 'mx' should still play digits from 
'digits/mx' although the syntax followed would be the default 'en' 
syntax. I tested this  all seems to work ok on my system.

What is your directory structure?
I think you must have another problem...
Anyway, I have put up a patch to the bugtracker which adds gender 
supoport to saynumber() for 'es' syntax so that we can have 'la una' in 
a future saytime().
Also in this patch is setting 'mx' language to use the 'es' syntax.

Please test if you get the chance:
http://bugs.digium.com/bug_view_page.php?bug_id=0001566
Best Wishes,
Fran.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Fran Boon
Carlos Chavez wrote:
 Here in Mexico we use the same tones as in the US.  In indications.conf I
simply copied the [us] section and labeled it [mx].  In the general section I
put country=mx.
 Since we do not share the same tones as Spain I thought it would be
better to use a different setting than es.  But maybe I got confused and I
can set language=es and country=mx without there being a problem.
I had this confusion when I started - 'uk' indications, yet 'en' language.

 By the way, is there a solution for saying numbers in spanish?  The
problem I have is that numbers like 100 (cien) do not sound correctly when
concatenated to other numbers.  When you have to say 101 the 100 sound changes
to: ciento uno.
ok, we have an 'es' syntax for saynumber() but it doesn't seem to 
support ciento uno as yet.
Is this the only number that changes?
What about 102? 110? 1001?

In the current syntax patch, it requests a soundfile 'cien.gsm' as 
that's what the original patch author made available for download:
http://voip-info.org/wiki-Asterisk+sound+files+international

If you have a more complete set (this only includes digits) then could 
you make it available for download?

I would prefer to rename 'cien.gsm' as the more standard '100.gsm'
'ciento' is basically 'hundred and', right?
For other languages we standardise on '100-and.gsm' for that kind of 
thing...

Comments welcome :)

F
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Carlos Chavez
On Thu, 06 May 2004 18:20:31 +0100, Fran Boon wrote
 Fran Boon wrote:
 Actually, looking at this again, 'mx' should still play digits from 
 'digits/mx' although the syntax followed would be the default 'en' 
 syntax. I tested this  all seems to work ok on my system.
 
 What is your directory structure?
 I think you must have another problem...
 
 Anyway, I have put up a patch to the bugtracker which adds gender 
 supoport to saynumber() for 'es' syntax so that we can have 'la una' 
 in a future saytime(). Also in this patch is setting 'mx' language 
 to use the 'es' syntax.
 
 Please test if you get the chance:
 http://bugs.digium.com/bug_view_page.php?bug_id=0001566
 
 My sounds live in:

/var/lib/asterisk/sounds/mx
/var/lib/asterisk/sounds/digits/mx

 Until I upgraded yesterday to the latest CVS I got most sounds from the
mx directories.  I only had the problem with some digits.  Since the upgrade
all sounds play as en.

--
Carlos Chavez
Computer Engineer, CCNA
Telecomunicaciones Abiertas de México S.A. de C.V.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Carlos Chavez
On Thu, 06 May 2004 18:45:15 +0100, Fran Boon wrote
 Carlos Chavez wrote:
 
 ok, we have an 'es' syntax for saynumber() but it doesn't seem to 
 support ciento uno as yet.
 Is this the only number that changes?
 What about 102? 110? 1001?
 
 All numbers like 10,20,30,40,50,60,70,80,90 and 100 have this problem. 
They all change when you have another number after.  The only exception is the
1000 sound which does not change.  For example:

diez dieci (10)
veinte   veinti (20)

 From 30 to 90 you have to and an y (and) to the number.  Some sounds
like oh.gsm I simply recorded as cero (zero).

 In the current syntax patch, it requests a soundfile 'cien.gsm' as 
 that's what the original patch author made available for download:
 http://voip-info.org/wiki-Asterisk+sound+files+international
 
 If you have a more complete set (this only includes digits) then 
 could you make it available for download?
 
 I was waiting until everything is working.  I have almost all sounds
translated, just missing a few like ACD.  I can make them available if you wish.

 I would prefer to rename 'cien.gsm' as the more standard '100.gsm'
 'ciento' is basically 'hundred and', right?

 Yes, that is correct.

 For other languages we standardise on '100-and.gsm' for that kind of 
 thing...

 This will work fine for spanish.

--
Carlos Chavez
Computer Engineer, CCNA
Telecomunicaciones Abiertas de México S.A. de C.V.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Fran Boon
Carlos Chavez wrote:
 My sounds live in:
/var/lib/asterisk/sounds/mx
/var/lib/asterisk/sounds/digits/mx
 Until I upgraded yesterday to the latest CVS I got most sounds from the
mx directories.  I only had the problem with some digits.  Since the upgrade
all sounds play as en.
I am still unable to replicate that here - all works good on latest CVS.
(I copied my 'es' files to 'mx' to double-check they'd actually get 
played as well as the console saying it would attempt to play them)

Do you have any custom patches? Do 'mx' files have the same names?
The console shows they're requesting in mx or en?
F
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Fran Boon
Carlos Chavez wrote:
ok, we have an 'es' syntax for saynumber() but it doesn't seem to 
support ciento uno as yet.
Is this the only number that changes?
What about 102? 110? 1001?
 All numbers like 10,20,30,40,50,60,70,80,90 and 100 have this problem. 
They all change when you have another number after.  The only exception is the
1000 sound which does not change.  For example:
diez dieci (10)
veinte   veinti (20)
 From 30 to 90 you have to and an y (and) to the number.  Some sounds
like oh.gsm I simply recorded as cero (zero).
Actually this is already in the current version.
'100.gsm' is 'ciento'
Hence the need for a separate 'cien.gsm' for simply '100'
11-19  21-29 have separate soundfiles with dieci/veinti
30-90 add 'y.gsm' before the last digit
As I see it saynumber() appears correct to me.
Now we 'just' need to work on saytime()  saydate()
http://voip-info.org/wiki-Asterisk+sound+files+international
If you have a more complete set (this only includes digits) then 
could you make it available for download?
 I was waiting until everything is working.  I have almost all sounds
translated, just missing a few like ACD.  I can make them available if you wish.
As the usual Open Source motto goes - 'Release Early, Release Often' ;)
Seriously - I for one would greatly appreciate it as we have many 
offices across latin america...

NB My latest patch to get 'mx' language setting to use 'es' syntax has 
been accepted into CVS  we also have the option to pass gender to 
saynumber() for 'una', playing 1F.gsm

I will send an updated i18ntestsuite.conf for you to play with if you're 
working on this with me...

F
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: Digits in a different language...

2004-05-06 Thread Nicolas Gudino
On Thu, 2004-05-06 at 18:15, Carlos Chavez wrote:
 On Thu, 06 May 2004 18:45:15 +0100, Fran Boon wrote
  Carlos Chavez wrote:
  
  All numbers like 10,20,30,40,50,60,70,80,90 and 100 have this problem. 
 They all change when you have another number after.  The only exception is the
 1000 sound which does not change.  For example:
 
 diez dieci (10)
 veinte   veinti (20)
 
  From 30 to 90 you have to and an y (and) to the number.  Some sounds
 like oh.gsm I simply recorded as cero (zero).

Hi Carlos,

I'm testing asterisk cvs-head as of yesterday. And the say_digits in
spanish seems to works fine. 

You have to add the proper .gsm sounds: 20 thru 29, cien, 100, 200, 300,
400, 500, 600, 700, 800, 900, mil, millon, millones, y

You have different sounds for 100: 100.gsm (ciento) and cien.gsm (cien)

Best regards,

-- 
Nicolas Gudino [EMAIL PROTECTED]
House Internet S.R.L.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users