search for: targetdataline

Displaying 12 results from an estimated 12 matches for "targetdataline".

2004 Aug 06
0
Lost ogg sync using jspeex
...melength=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(TargetDataLine.class,audioFormat,8000); System.out.println("Dataline.Info Created"); //DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100); TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo); System.out.println("Ta...
2004 Aug 06
0
Lost ogg sync using jspeex
...melength=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(TargetDataLine.class,audioFormat,8000); System.out.println("Dataline.Info Created"); //DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100); TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo); System.out.println("Ta...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...ctor 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");<BR> DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class,audioFormat,8000);<BR> System.out.println("Dataline.Info Created");<BR> //DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100);<BR> TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);<...
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...re's something I'm missing, here's my code: import java.io.IOException; import java.io.FileOutputStream; import java.io.File; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.TargetDataLine; import javax.sound.sampled.AudioFormat.Encoding; import java.io.*; import org.xiph.speex.*; public class RecordTest { /** * @param args * @throws Exception */ private static int nbBytes = 0; private static int obBytes = 0; private static int myNum = 0; p...
2004 Aug 06
0
JSpeex help
...ed 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 (TargetDataLine.class, format, 8000); TargetDataLine tdl = (TargetDataLine) AudioSystem.getLine (targetInfo); AudioInputStream auin=new AudioInputStream (tdl); PipedOutputStream pout=new PipedOutputStream(); PipedInputStream pin=new PipedInputStream(pout); pcm2speex=new Pcm2SpeexAudioInputStream (pin, format, Audi...
2004 Aug 06
0
JSpeex help
...n 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 (TargetDataLine.class, format, 8000);TargetDataLine tdl = (TargetDataLine) AudioSystem.getLine (targetInfo);AudioInputStream auin=new AudioInputStream (tdl);PipedOutputStream pout=new PipedOutputStream();PipedInputStream pin=new PipedInputStream(pout);pcm2speex=new Pcm2SpeexAudioInputStream (pin, format, Aud...
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
...ut(t); > // ai.start(); > if(t.input==null){ > AudioFormat format = new > AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100, 16, 2, 4, 44100, > false); > DataLine.Info targetInfo = new > DataLine.Info(TargetDataLine.class, format, 44100); > t.input = (TargetDataLine) > AudioSystem.getLine(targetInfo); > > t.input.open(format,44100); > System.out.println(" Mic opened"); > >...
2004 Aug 06
0
q about jspeex
...AudioInput ai=new AudioInput(t); // ai.start(); if(t.input==null){ AudioFormat format = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100, 16, 2, 4, 44100, false); DataLine.Info targetInfo = new DataLine.Info(TargetDataLine.class, format, 44100); t.input = (TargetDataLine) AudioSystem.getLine(targetInfo); t.input.open(format,44100); System.out.println(" Mic opened"); t.input.s...
2004 Aug 06
0
q about jspeex
...ai.start(); >> if(t.input==null){ >> AudioFormat format = new >> AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100, 16, 2, 4, 44100, >> false); >> DataLine.Info targetInfo = new >> DataLine.Info(TargetDataLine.class, format, 44100); >> t.input = (TargetDataLine) >> AudioSystem.getLine(targetInfo); >> >> t.input.open(format,44100); >> System.out.println(" Mic opened...
2007 Jun 24
0
JSpeex help
...ving for use later. > > I've looked around the 'net and havent had much luck finding anywhere > for detailed information on integrating Jspeex into a Java application. > > I'm using the following code to capture audio: > > ======= > > // open line > line = (TargetDataLine)AudioSystem.getLine( dataLineInfo ); > line.open( format ); > line.start(); > > // write audio capture to buffer (ostream) > int buffSize = (int)format.getSampleRate() * format.getFrameSize(); > byte buffer[] = new byte[buffSize]; > > ostream = new ByteArrayOutputStream(); &...