linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-users] Speex at low bitrate


From: pankaj anand
Subject: [Linphone-users] Speex at low bitrate
Date: Thu, 10 Dec 2009 18:50:38 +0530

hi , 
 how can I reduce the bitrate used by Speex.  I looked into the speex file in mediastreamer and I found that.. if change the value of s->mode to 1 , will it be able to encode the audio at 2.15 kbps ?


 if (s->rate==8000){
                //+------+---------------+-------------+^M
                //| mode | Speex quality |   bit-rate  |^M
                //+------+---------------+-------------+^M
                //|   1  |       0       | 2.15 kbit/s |^M
                //|   2  |       2       | 5.95 kbit/s |^M
                //|   3  |     3 or 4    | 8.00 kbit/s |^M
                //|   4  |     5 or 6    | 11.0 kbit/s |^M
                //|   5  |     7 or 8    | 15.0 kbit/s |^M
                //|   6  |       9       | 18.2 kbit/s |^M
                //|   7  |      10       | 24.6 kbit/s |^M
                //|   8  |       1       | 3.95 kbit/s |^M
                //+------+---------------+-------------+^M
                if (s->mode<=0 || s->mode>8)
                        s->mode = 3; /* default mode */

                if (s->mode==1)
                        {

                        s->bitrate = 2150;
                        }
                else if (s->mode==2)
                        s->bitrate = 5950;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]