Questions tagged [speex]

Speex is an open-source audio compression format designed for speech. It is based on CELP and is designed to compress voice at bitrates ranging from 2 to 44 kbps.

Speex is a patent-free audio compression format designed for speech and also a free software speech codec that may be used on VoIP applications and podcasts. Speex is be free of any patent restrictions and is licensed under the revised (3-clause) BSD license. It may be used with the Ogg container format or directly transmitted over UDP/RTP.

The Speex designers see their project as complementary to the Vorbis general-purpose audio compression project. Speex is a lossy format, meaning quality is permanently degraded to reduce file size. The Speex project was created on February 13, 2002.

The first development versions of Speex were released under LGPL license, but as of version 1.0 beta 1, Speex is released under Xiph's version of the (revised) BSD license. Speex 1.0 was announced on March 24, 2003, after a year of development. The last stable version of Speex encoder and decoder is 1.2.0.

The Speex codec has been obsoleted by Opus. It will continue to be available, but since Opus is better than Speex in all aspects, users are encouraged to switch

source : wikipedia.com

152 questions
1
vote
0 answers

Make portaudio and speex work together

I am trying to build a minimal loop audio Microphone -> Portaudio -> buffer -> Speex encoder -> Speex decoder -> buffer -> Portaudio -> Headphones Without Speex I could get audio with Portaudio and play it in headphones. Inserting Speex…
gc5
  • 9,468
  • 24
  • 90
  • 151
1
vote
1 answer

Facing trouble to cancel acoustic echo using speex in Android

i am trying to cancel echo but couldn't able to cancel even using a very simple example.Frame size 160 Tile Length 100 audioRecord.read(mic,0,mic.length); audioData =…
Sureshkumar Menon
  • 1,165
  • 7
  • 27
  • 49
0
votes
0 answers

How to provide FLOATING_POINT support in android-ndk-r7b-linux while compiling Speex?

I am trying to Compile Speex for Android using android-NDK, currently I am targetting android 2.3.3 however later I will have to test my app on all the android versions greater than 1.6. My Android.mk file looks like:- LOCAL_PATH := $(call…
Amit
  • 13,134
  • 17
  • 77
  • 148
0
votes
1 answer

speex_encode_int() always returns 70 encoded ouput bytes

I'd like to encode data with libspeex. However, speex_encode_int() always returns a SpeexBits of length 70. It doesn't matter what I provide (music, silence, voice). Input specification: 16bit, PCM, Mono, 44100Hz sampling rate, LE int tmp; short…
SecStone
  • 1,733
  • 4
  • 20
  • 31
0
votes
1 answer

Encoding Speex with libavcodec (FFMpeg)?

I successfully compiled libavcodec with speex enabled. I modified example from FFMPEG docs to encode the sample audio into Speex. But the result file cannot be played with VLC Player(which has Speex decoder). Any tips? static void…
Ashika Umanga Umagiliya
  • 8,988
  • 28
  • 102
  • 185
0
votes
1 answer

converting unsigned short to signed short for audio PCM samples

I want to use audio codec (Speex) for compression; the codec takes audio samples of type short (2-bytes signed) as input, range:-2^15 to2^15 -1. My problem is that I have samples of type unsigned short(2-bytes unsigned), range: 0 to 2^16 -1. So,…
0
votes
1 answer

How to control audio echo and reduce mic gain level using the features of speex codec?

I am testing audio loopback program in android using speex codec.I am getting severe echo when loudspeaker turned on.speex encode and decode called from separate thread.How to control echo and also reduce the mic gain level.Need simple example or…
Sureshkumar Menon
  • 1,165
  • 7
  • 27
  • 49
0
votes
1 answer

Speex decoded frame is not as the original frame

i need your help in determining the problem in the following sample code (taken from speex manual) for fixed point encoding. i tested encoding a 160 sample frame and then decoding it back But The problem is that the decoded frame is totally…
0
votes
1 answer

linking error: undefined reference to static libarary

I need your help about this problem if anyone has info. I have configured speex1.2rc1 for xscale-elf (ARM architecture) ,then executed make and make install. So, I obtained libspeex.a in the /usr/local/lib with libogg.a compiled as well. but i when…
0
votes
1 answer

Encoding Speex Into a SWF Version 10 Sound Stream

Adobe's "SWF File Format Specification v10" says that Speex encoded data can be used for streaming sound (a little clarification of the "streaming sound" definition here: "The SWF file format supports a streaming sound mode where sound data is…
Dkg
  • 105
  • 4
0
votes
1 answer

#error You now need to define either FIXED_POINT or FLOATING_POINT

I am trying to compile ioauek3 on our IBM PowerPC machine that is running with a Linux environment. I got this error: #error You now need to define either FIXED_POINT or FLOATING_POINT After searching the net for an answer, I found many point to…
user598208
  • 217
  • 3
  • 6
  • 15
0
votes
1 answer

Wrapping Speex format in an Ogg container..HowTo?

I'm looking for examples on how to wrap the speex format with the ogg format. I stumbled upon the "fish" example (kfish) but it would be nice if someone could point me in the direction of a "cut to the bone" example, if one exists. Or perhaps…
DevNull
  • 763
  • 5
  • 17
  • 30
0
votes
0 answers

Java JNI native code jshortArray for audio lib/codec

Is this correct way to create native jshortArray from C char array: size_t s; FILE *f = fopen(argv[4], "rb"); void *b; fseek(f, 0, SEEK_END); s = ftell(f); fseek(f, 0, SEEK_SET); b = (char *)malloc(s); fread(b, s, 1, f); fclose(f); jshortArray js…
dev
  • 1,119
  • 1
  • 11
  • 34
0
votes
0 answers

Libspeexjni JNI integration

Those are Java functions in question: targetFunctionPtr1 is public static native long nInitSpxEncoder(); targetFunctionPtr is public static native long nEncodeBuffer(long j12, short[] sArr, byte[] bArr, long j13); Sample pseudo Java code long…
dev
  • 1,119
  • 1
  • 11
  • 34
0
votes
1 answer

Flash SPEEX codec coversion for Google Speech API - a challenge

People have figured out how to use the Google Speech API (Speech-To-Text). I'm trying to get it working with Flash Speex codec, and I just can't figure it out. I've tried inserting frame size byte before each 160 bytes (as some sources say), but…
er453r
  • 211
  • 2
  • 11