search for: framelength

Displaying 11 results from an estimated 11 matches for "framelength".

Did you mean: frame_length
2004 Aug 06
0
Lost ogg sync using jspeex
...ow jspeex works. // File AudioCapture.java import javax.sound.sampled.spi.*; import javax.sound.sampled.*; import org.xiph.speex.spi.*; import java.util.*; import java.net.*; import java.io.*; public class AudioCapture { public static void main(String args[]) { int bufferlength=44100; int framelength=1280; int frameduration=1000; Vector recordBuffer=new Vector(); try { AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true); System.out.println("AudioFormat Created"); DataLine.Info dataLineInfo = new DataLine.Info(TargetDa...
2004 Aug 06
0
Lost ogg sync using jspeex
...ow jspeex works. // File AudioCapture.java import javax.sound.sampled.spi.*; import javax.sound.sampled.*; import org.xiph.speex.spi.*; import java.util.*; import java.net.*; import java.io.*; public class AudioCapture { public static void main(String args[]) { int bufferlength=44100; int framelength=1280; int frameduration=1000; Vector recordBuffer=new Vector(); try { AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true); System.out.println("AudioFormat Created"); DataLine.Info dataLineInfo = new DataLine.Info(TargetDa...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...peex.spi.*;<BR>import java.util.*;<BR>import java.net.*;<BR>import java.io.*;</FONT></DIV> <DIV><FONT face=Arial size=2>public class AudioCapture{<BR> public static void main(String args[])<BR> {<BR> int bufferlength=44100;<BR> int framelength=1280;<BR> int frameduration=1000;<BR> Vector recordBuffer=new Vector();<BR> try<BR> {<BR> AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true);<BR> System.out.println("AudioFormat Created");<B...
2004 Aug 06
3
q about jspeex
Hi Marc, thanks for the quick reply. Marc Gimpel wrote: > It would appear the the 'pcm2speex.read(frame, 0, frame.length)' is > blocking which means that it is waiting for data from the underlying > inputstream (i.e.AudioInputStream(t.input)). If it could read > sufficient data it would transcode it. If it recieved an EOF, it > should do some zero padding and then
2004 Aug 06
3
Mixing audio
Is There any intension to deal with mixing two or more streams encoded with "speex". Most voice wise applications (such as conference) need this feature. Oded Rephael <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org'
2004 Aug 06
2
q about jspeex
..."+pcm2speex.getEncoder().getRelativeQuality()); > System.out.println("*** end of speex info"); > System.out.println("everything ok in writer"); > } byte[] frame=new > byte[t.framelength]; while(true){ > int n=pcm2speex.read(frame, 0, frame.length); > System.out.println(""+n+" bytes read."); > > t.recordBuffer.addElement(frame); >...
2004 Aug 06
0
q about jspeex
...lative quality: "+pcm2speex.getEncoder().getRelativeQuality()); System.out.println("*** end of speex info"); System.out.println("everything ok in writer"); } byte[] frame=new byte[t.framelength]; while(true){ int n=pcm2speex.read(frame, 0, frame.length); System.out.println(""+n+" bytes read."); t.recordBuffer.addElement(frame);...
2004 Aug 06
0
JSpeex help
...ioInputStream auin=new AudioInputStream (tdl); PipedOutputStream pout=new PipedOutputStream(); PipedInputStream pin=new PipedInputStream(pout); pcm2speex=new Pcm2SpeexAudioInputStream (pin, format, AudioSystem.NOT_SPECIFIED); tdl.open(format,8000); t.input.start(); double ratio = t.bufferlength / t.framelength; byte[] frame=new byte[t.framelength]; while(true) { int n=auin.read(frame, 0, frame.length); System.out.println(""+n+" bytes read."); pout.write(frame); int m=pcm2speex.read(); System.out.println(""+m+" bytes read - 2."); } But, when I run, it wa...
2004 Aug 06
0
q about jspeex
...x.getEncoder().getRelativeQuality()); >> System.out.println("*** end of speex info"); >> System.out.println("everything ok in writer"); >> } byte[] frame=new >> byte[t.framelength]; while(true){ >> int n=pcm2speex.read(frame, 0, frame.length); >> System.out.println(""+n+" bytes read."); >> >> t.recordBuffer.addElement(frame); &gt...
2004 Aug 06
0
JSpeex help
...dioInputStream auin=new AudioInputStream (tdl);PipedOutputStream pout=new PipedOutputStream();PipedInputStream pin=new PipedInputStream(pout);pcm2speex=new Pcm2SpeexAudioInputStream (pin, format, AudioSystem.NOT_SPECIFIED);tdl.open(format,8000);t.input.start();double ratio = t.bufferlength / t.framelength; byte[] frame=new byte[t.framelength];while(true) {  int n=auin.read(frame, 0, frame.length);  System.out.println(""+n+" bytes read.");  pout.write(frame);  int m=pcm2speex.read();  System.out.println(""+m+" bytes read - 2.");} But, when I run, it waits i...
2018 Feb 16
1
Reg an issue with smoothing factor in VAD implementation
Hi Chandrakala, Logan, Can you confirm that the attached patch fixes the overflow problem? Koen, can you confirm the fix makes sense? Cheers, Jean-Marc On 11/27/2017 12:10 PM, Logan Stromberg wrote: > Sorry, long holiday weekend in America. > I can say with pretty high certainty that there is an overflow occurring > and it is flipping smooth_coef_Q16 to be negative when it probably