version 1.2.3

This commit is contained in:
Jared Szechy 2011-08-21 03:39:16 -04:00
parent fd9401b09d
commit 31ffa3f719
6 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,9 @@
1.2.3 Fixed bugs:
Cik array in mbe_decodeAmbe2250Parms was too small
1.2.2 Fixed bugs:
uninitialized variable in SpectralAmpEnhance()
1.2.1 New Features:
Improved unvoiced speech synthesis

4
README
View File

@ -7,8 +7,8 @@ PATENT NOTICE
Readers are strongly advised to check for any patent restrictions or
licencing requirements before compiling or using this source code.
mbelib 1.2.1
mbelib 1.2.3
mbelib 1.2.1 supports the 7200x4400 bit/s codec used in P25 Phase 1,
mbelib 1.2.3 supports the 7200x4400 bit/s codec used in P25 Phase 1,
the 7100x4400 bit/s codec used in ProVoice and the "Half Rate"
3600x2250 bit/s vocoder used in various radio systems.

View File

@ -142,7 +142,7 @@ mbe_decodeAmbe2250Parms (char *ambe_d, mbe_parms * cur_mp, mbe_parms * prev_mp)
int ji, i, j, k, l, L, L9, m, am, ak;
int intkl[57];
int b0, b1, b2, b3, b4, b5, b6, b7, b8;
float f0, Cik[5][11], flokl[57], deltal[57];
float f0, Cik[5][18], flokl[57], deltal[57];
float Sum42, Sum43, Tl[57], Gm[9], Ri[9], sum, c1, c2;
char tmpstr[13];
int silence;

0
configure vendored Normal file → Executable file
View File

View File

@ -96,17 +96,16 @@ void
mbe_spectralAmpEnhance (mbe_parms * cur_mp)
{
float Rm0, Rm1, R2m0, R2m1, Wl[57], cw0l;
float Rm0, Rm1, R2m0, R2m1, Wl[57];
int l;
float sum, gamma, M;
Rm0 = 0;
Rm1 = 0;
cw0l = cur_mp->w0 * (float) l;
for (l = 1; l <= cur_mp->L; l++)
{
Rm0 = Rm0 + powf (cur_mp->Ml[l], (float) 2);
Rm1 = Rm1 + (powf (cur_mp->Ml[l], (float) 2) * cosf (cw0l));
Rm1 = Rm1 + (powf (cur_mp->Ml[l], (float) 2) * cosf (cur_mp->w0 * (float) l));
}
R2m0 = powf (Rm0, (float) 2);
@ -116,7 +115,7 @@ mbe_spectralAmpEnhance (mbe_parms * cur_mp)
{
if (cur_mp->Ml[l] != 0)
{
Wl[l] = sqrtf (cur_mp->Ml[l]) * powf ((((float) 0.96 * M_PI * ((R2m0 + R2m1) - ((float) 2 * Rm0 * Rm1 * cosf (cw0l)))) / (cur_mp->w0 * Rm0 * (R2m0 - R2m1))), (float) 0.25);
Wl[l] = sqrtf (cur_mp->Ml[l]) * powf ((((float) 0.96 * M_PI * ((R2m0 + R2m1) - ((float) 2 * Rm0 * Rm1 * cosf (cur_mp->w0 * (float) l)))) / (cur_mp->w0 * Rm0 * (R2m0 - R2m1))), (float) 0.25);
if ((8 * l) <= cur_mp->L)
{

View File

@ -18,7 +18,7 @@
#ifndef _MBELIB_H
#define _MBELIB_H
#define MBELIB_VERSION "1.2.1"
#define MBELIB_VERSION "1.2.3"
#include "config.h"
#include <stdio.h>