Displaying 16 results from an estimated 16 matches for "speexencoding".
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
Hi guys
I have tried compiling this attached code, I made all the buffers 320, there is no trace of a 160 buffer, but I get a "
SpeexEncoder requires 320 samples to process a Frame, not 160" error.
Maybe there's something I'm missing, here's my code:
import java.io.IOException;
import java.io.FileOutputStream;
import java.io.File;
import
2007 Aug 24
0
speex DTX chore
hi there,
I am new to mailing list so excuse me if I don't obey to the 'netiquette'.
i am writing voice chat and speex is in the root of it. i write it in Java and use JNI to link with 'C'-based Speex 1.2beta. [I know of JSpeex but there are not implemented some features]
recently i decided to use DTX feature of speex as well. the code follows. The problem is that no matter
2004 Aug 06
2
optimization possible?
hi,
i did some tests about performance in jspeex ...
uls@mainframe:~/eclipse/avrelay$ java TestClient
Diff1: 0
10
Diff2: 141
started.
uls@mainframe:~/eclipse/avrelay$
<p>{
SpeexEncoder e1=new SpeexEncoder();
e1.init(0,1,44100,1);
byte[] by1=new byte[320];
long l1=System.currentTimeMillis();
long l2=System.currentTimeMillis();
System.out.println("Diff1:
2010 May 06
1
Encoding a wave file with a bad header
...JSpeex actually, to compress an otherwise valid wave file with zero lengths in the header would it impact the compression at all? Here's what I'm doing during compression in Java:
AudioFormat wavFormat = ais.getFormat();
AudioFormat speexFormat =
new AudioFormat(SpeexEncoding.SPEEX_Q5,
wavFormat.getSampleRate(),
-1, // sample size in bits
wavFormat.getChannels(),
-1, // frame size
-1, // frame rate
false); // little endian...
2004 Aug 06
0
JSpeex help
I am not sure if this is right place to ask for help on jspeex or can some one suggest. I have tried on jspeex sourceforge.net page.
I am trying to use Pcm2SpeexAudioInputStream by creating it from tdl which received pcm_signed audio data as follows:
AudioFormat format = new AudioFormat (AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true);
DataLine.Info targetInfo = new DataLine.Info
2004 Aug 06
0
Invalid mode encountered: corrupted stream?
Hi,
in my application i quite often (not allways) get those two warning:
"Invalid mode encountered: corrupted stream?"
"Invalid wideband mode encountered: corrupted stream?"
The stream is not corrupted but i wish to know what those warning mean to
correct my code.
My encode and decode routines are those (libspeex 1.1.4):
SpeexBits enc_bits, dec_bits;
void *enc_state,
2007 Aug 21
0
Need help on making speex AEC to work
Hello All
I'm accessing speex via jni, I have successfully
decoded and encoded data and capture and play it back in java. Now my
challenge is speex's echo canceller.
My capture and playback are not synchronized, so i got to use the method from 1.2beta2 right?
What's
the proper way to fit speex_echo_capture() and speex_echo_playback()
into the following procedures, assuming they were
2007 Nov 14
0
Audio glitches/Configuration problem !!?
Hi all,
First of all, thanks to Speex developper for the all the job.
I am trying to implement my own Speex DirectShow fitlers for VoIP following
the documentation and sample code's.
I am facing audio glitches when encoding - decoding PCM data. The encoder
and decoder procedures are copied below.
What about the lookahead size ? how shouw we apply it in encoding stage ?
thanks in advance
2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
Hello,
I'm having a problem using Speex - I'm getting white noise/static from the
following process:
(Load File) -> (Encode) -> (Decode) -> (Play)
I know there's no issue with the loading or playing because (Load File)->
(Play) plays the file properly.
I believe the problem lies with the speex_bits_write and
speex_bits_read_from functions, because if I change my encode
2008 Jan 07
0
JSpeex - Unsupported conversion
...catch (Exception e) {
System.out.println("Exception: " + e.getMessage());
e.printStackTrace();
return;
}
AudioFormat srcFormat = audioInputStream.getFormat();
AudioFormat targetFormat =
new AudioFormat(SpeexEncoding.SPEEX_Q3,
srcFormat.getSampleRate(),
-1, // sample size in bits
srcFormat.getChannels(),
-1, // frame size
-1, // frame rate...
2008 Jan 08
0
JSpeex - Unsupported conversion
...) {
> System.out.println("Exception: " + e.getMessage());
> e.printStackTrace ();
> return;
> }
> AudioFormat srcFormat = audioInputStream.getFormat();
>
> AudioFormat targetFormat =
> new AudioFormat(SpeexEncoding.SPEEX_Q3 ,
> srcFormat.getSampleRate(),
> -1, // sample size in bits
> srcFormat.getChannels(),
> -1, // frame size
> -1, // frame rate
>...
2008 Dec 17
0
help with jspeex
hello
i use the java lib jspeex from http://jspeex.sourceforge.net/
now i use this java code to encode to speex
audioInputStream = AudioSystem.getAudioInputStream(srcFile);
AudioFormat srcFormat = audioInputStream.getFormat();
AudioFormat targetFormat =
new AudioFormat(SpeexEncoding.SPEEX_VBR8 ,
srcFormat.getSampleRate(),
-1, // sample size in bits
srcFormat.getChannels(),
-1, // frame size
-1, // frame rate
srcFormat.is...
2009 Aug 05
0
endianess
hi,
i'm using jspeex to encode signed little endian pcm 16bits data to speex, so
i can then publish it to a flash client.
On rtmp spec is said that is used network byte order, so in a speex frame
consisted in more than 1 byte, i guess i have to send it in big endian
order.
By the source code of jspeex i see that when i pass pcm data as a parameter
to SpeexEncoder.processData they use it as
2010 Mar 20
0
Decode file written from JSpeex using C/C++ API?
...s.) I've also managed to compress a wave file and output a .spx file using JSpeex and the following Groovy code:
AudioInputStream ais = AudioSystem.getAudioInputStream(new File("16Bitprompt.wav"));
AudioFormat wavFormat = ais.getFormat();
AudioFormat speexFormat =
new AudioFormat(SpeexEncoding.SPEEX_Q5,
wavFormat.getSampleRate(),
-1, // sample size in bits
wavFormat.getChannels(),
-1, // frame size
-1, // frame rate
false); // little endian
ais = AudioSystem.getAudioInputStream(speexFormat, ai...
2010 Aug 27
0
Question about encoding
Hey there =]
I intend to develop a voip application using the Jspeex (Java implementation
of Speex) library.
At this point, the progrm can capture the voice from the microphone to an
"ByteArrayOutputStream" object and play it back.
I`m willing to add the encode\decode features of Jspeex but I can't make it
to work, I`m probably missing somethnig.
The code (Part of it) :
-----
2004 Aug 06
0
JSpeex help
Hi Sanjiv,
There does indeed appear to be some trouble with
the Javasound SPI encoder (the SPI decoder works well).
I am working on it, and hope to have a fix soon. In the
mean time, you can use the encoder outside of
JavaSound, that one works well (see the command line
encoder as example code of how to implement it).
sincerely
Marc Gimpel
Head of research
Wimba
<p>On