[Asterisk-Users] speex

James H. Cloos Jr. cloos at jhcloos.com
Mon May 17 09:24:04 MST 2004


Just a suggestion to anyone using speex:

Try running the 1.1.5 or svn code rather than 1.0.3.  

As a quick example, here are the show translation outputs from * on a
2.8 GHz P4 with speex 1.0.3 (from debian sid's .deb) and from 1.1.5
(compiled with CFLAGS=-march=pentium4 and --enable-sse).

Note how encoding from slin went from 25 to 15 ms.  That is from the
re-write of the sse optimized routines in libspeex.  The % change is
similar to what I saw on my p3 notebook, where both 1.0.3 and 1.1.5
were compiled with --enable-sse and -march=pentium3.

(As a side note, these were captured before Brian's ilbc Makefile
patch made it to the anon cvs tree; that optimization shaved 5ms
off the time to encode to iLBC on that box.)

spx103*CLI> show translation 
         Translation times between formats (in milliseconds)
          Source Format (Rows) Destination Format(Columns)

         G723   GSM  ULAW  ALAW  G726 ADPCM SLINR LPC10 G729A SPEEX  ILBC
   G723     -     -     -     -     -     -     -     -     -     -     -
    GSM     -     -     2     2     2     2     1     6     -    26    19
   ULAW     -     3     -     1     2     2     1     6     -    26    19
   ALAW     -     3     1     -     2     2     1     6     -    26    19
   G726     -     3     2     2     -     2     1     6     -    26    19
  ADPCM     -     3     2     2     2     -     1     6     -    26    19
  SLINR     -     2     1     1     1     1     -     5     -    25    18
  LPC10     -     4     3     3     3     3     2     -     -    27    20
  G729A     -     -     -     -     -     -     -     -     -     -     -
  SPEEX     -     3     2     2     2     2     1     6     -     -    19
   ILBC     -     5     4     4     4     4     3     8     -    28     -

spx115*CLI> show translation 
         Translation times between formats (in milliseconds)
          Source Format (Rows) Destination Format(Columns)

         G723   GSM  ULAW  ALAW  G726 ADPCM SLINR LPC10 G729A SPEEX  ILBC
   G723     -     -     -     -     -     -     -     -     -     -     -
    GSM     -     -     2     2     2     2     1     6     -    16    19
   ULAW     -     3     -     1     2     2     1     6     -    16    19
   ALAW     -     3     1     -     2     2     1     6     -    16    19
   G726     -     3     2     2     -     2     1     6     -    16    19
  ADPCM     -     3     2     2     2     -     1     6     -    16    19
  SLINR     -     2     1     1     1     1     -     5     -    15    18
  LPC10     -     4     3     3     3     3     2     -     -    17    20
  G729A     -     -     -     -     -     -     -     -     -     -     -
  SPEEX     -     3     2     2     2     2     1     6     -     -    19
   ILBC     -     5     4     4     4     4     3     8     -    18     -


-JimC
-- 
James H. Cloos, Jr. <cloos at jhcloos.com> <http://jhcloos.com/voip>



More information about the asterisk-users mailing list