This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with Speex1.3 on TI 3.0 Simulator



Hello,

I am trying to know about how speex encoding and decoding actually works so i have imported the project provided by speex for C55x processors

This simulation actually accepts a .snd file and compress and decompresses it and gives out a .snd file so in the even of this when i try to input a speech file in .snd format the console gives me something like this

Persist Allocated 74 chars at 8000, 1926 remaining
Scratch Allocated 3000 chars at 87d0, 0 remaining
Persist Allocated 40 chars at 804a, 1886 remaining
Persist Allocated 306 chars at 8072, 1580 remaining
Persist Allocated 306 chars at 81a4, 1274 remaining
Persist Allocated 10 chars at 82d6, 1264 remaining
Persist Allocated 10 chars at 82e0, 1254 remaining
Persist Allocated 20 chars at 82ea, 1234 remaining
Persist Allocated 20 chars at 82fe, 1214 remaining
Persist Allocated 20 chars at 8312, 1194 remaining
Persist Allocated 20 chars at 8326, 1174 remaining
Persist Allocated 20 chars at 833a, 1154 remaining
Persist Allocated 8 chars at 834e, 1146 remaining
Persist Allocated 4 chars at 8356, 1142 remaining
Persist Allocated 32 chars at 835a, 1110 remaining
Persist Allocated 188 chars at 837a, 922 remaining
Scratch Allocated 1000 chars at 87d0, 2000 remaining
Persist Allocated 500 chars at 8436, 422 remaining
Persist Allocated 10 chars at 862a, 412 remaining
Persist Allocated 10 chars at 8634, 402 remaining
Persist Allocated 20 chars at 863e, 382 remaining
Persist Allocated 8 chars at 8652, 374 remaining
decoder lookahead = 80
Persist Allocated 21 chars at 865a, 353 remaining
Bits so far: 79
Bits so far: 158
Bits so far: 237
Bits so far: 316
             .

             .

             .
Bits so far: 15484
Bits so far: 15563
Bits so far: 15642
Bits so far: 15721
Bits so far: 15800
Total encoded size: 15800 bits
warning: at speex_free_scratch
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free_scratch
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
warning: at speex_free
SNR = 0.761611
segmental SNR = 0.766965

frankly i did not understand these console messages,any one can explain if they have worked

so  from this i feel the speex has no enough space to do the necessary operation or

here is the command file for you

/* Copyright (C) 2005 Psi Systems, Inc.
   File: speex_C55_test.cmd
   Linker command file with memory allocation for TI TMS320VC5509A processor
   for use with TI Code Composer (TM) DSP development tools.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions
   are met:
   
   - Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
   
   - Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
   
   - Neither the name of the Xiph.org Foundation nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.
   
   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

-c
//-stack 0x2000
-stack 0x1c00
-heap 0x1000	/* If private memory allocation is used for Speex */
//-heap 0x6000
//	/ * If calloc is used for Speex */
-sysstack 0x200
-lrts55.lib
//--map_file=map.out
MEMORY
{
   VECT:       origin = 0xC0,         len = 0x100
  // DARAM:      origin = 0x100,         len = 0x7e00
   DARAM:      origin = 0x200,         len = 0x7e00
   DARAM_B:    origin = 0x8000,        len = 0x8000
   //VECT:       origin = 0x100,         len = 0x100
   SARAM_A:    origin = 0x10000,       len = 0x10000
   SARAM_B:    origin = 0x20000,       len = 0x20000
}

SECTIONS
{
    .vectors: {} > VECT
    .bootmem: {} > DARAM
    .text:    {} > SARAM_B
    .cinit:   {} > SARAM_B
    .switch:  {} > SARAM_B
    .bss:     {} > DARAM

/*  .far:     {} > DARAM*/
    .const:   {} > DARAM
    .sysmem:  {} > DARAM_B
    .cio:     {} > DARAM
    .stack:   {} > DARAM
    .sysstack:{} > DARAM
    .myheap:  {} > SARAM_A
}
, but  it is looking ok for me 

is it an internal setting error ?

i have attached   the sound file and also the project  

5657.speex and sound file.zip

if you are unable to compile it import directly as legacy from
here :http://downloads.xiph.org/releases/speex/speex-1.2beta3.tar.gz

1.necessary changes needed are patch config.h and os_support_custom.h in to include folder or any desired path 
patch here:6683.patch.zip 

2.changing include path

3.editing arch.h with #define FIXED_POINT

please resolve my error if any one of  you have ported speex on to C55x platform