search for: pipedoutputstream

Displaying 8 results from an estimated 8 matches for "pipedoutputstream".

2004 Aug 06
3
q about jspeex - repost of TestClient.java with PipedInputStream
There is actually a mail missing - the version with the pipedinputstream construction. attached the current source with pipedinputstream/pipedoutputstream tia, ulrich <p><p> -------------- next part -------------- A non-text attachment was scrubbed... Name: TestClient.java Type: text/x-java Size: 14939 bytes Desc: TestClient.java Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20031031/b78cc240/TestClient-0001.java
2004 Aug 06
0
Lost ogg sync using jspeex
...etDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo); System.out.println("TargetDataLine Created"); //SourceDataLine sourceDataLine = (SourceDataLine) AudioSystem.getLine(outputDataLineInfo); AudioInputStream auin=new AudioInputStream(targetDataLine); PipedOutputStream pout=new PipedOutputStream(); //PipedInputStream pin=new PipedInputStream(pout); //ServerSocket serverSocket = new ServerSocket(5555); Pcm2SpeexAudioInputStream pcm2speex=new Pcm2SpeexAudioInputStream(auin, audioFormat, AudioSystem.NOT_SPECIFIED); SpeexPlayer speexPlayer = new SpeexPlay...
2004 Aug 06
0
Lost ogg sync using jspeex
...etDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo); System.out.println("TargetDataLine Created"); //SourceDataLine sourceDataLine = (SourceDataLine) AudioSystem.getLine(outputDataLineInfo); AudioInputStream auin=new AudioInputStream(targetDataLine); PipedOutputStream pout=new PipedOutputStream(); //PipedInputStream pin=new PipedInputStream(pout); //ServerSocket serverSocket = new ServerSocket(5555); Pcm2SpeexAudioInputStream pcm2speex=new Pcm2SpeexAudioInputStream(auin, audioFormat, AudioSystem.NOT_SPECIFIED); SpeexPlayer speexPlayer = new SpeexPlay...
2004 Aug 06
3
q about jspeex
...0 bytes (which should compress down to something > like 29 bytes because the quality setting should be 3 by default). what about piping the input streams? can't i manually read 640 samples from my AudioInputStream (which works) and hand them to a pipe (PipedInputStream connected with an PipedOutputStream) which ends in an InputStream in the Pcm2Speex constructor? > Having said this, jspeex does provide an SPI interface so you > should be able to ask JavaSound to give you directly a a Speex > AudioInputStream. It's coded although I admit that I never got round > to testing it...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...ataLine) AudioSystem.getLine(dataLineInfo);<BR> System.out.println("TargetDataLine Created");<BR> //SourceDataLine sourceDataLine = (SourceDataLine) AudioSystem.getLine(outputDataLineInfo);<BR> AudioInputStream auin=new AudioInputStream(targetDataLine);<BR> PipedOutputStream pout=new PipedOutputStream();<BR> //PipedInputStream pin=new PipedInputStream(pout);<BR> //ServerSocket serverSocket = new ServerSocket(5555);<BR> Pcm2SpeexAudioInputStream pcm2speex=new Pcm2SpeexAudioInputStream(auin, audioFormat, AudioSystem.NOT_SPECIFIED);<BR> Spe...
2004 Aug 06
0
JSpeex help
...Format 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, AudioSystem.NOT_SPECIFIED); tdl.open(format,8000); t.input.start(); double ratio = t.bufferlength / t.framelength; byte[] frame=new byte[t.framelength]; while(true)...
2004 Aug 06
0
JSpeex help
...ormat 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, AudioSystem.NOT_SPECIFIED);tdl.open(format,8000);t.input.start();double ratio = t.bufferlength / t.framelength; byte[] frame=new byte[t.framelength];while(true) { ...
2004 Aug 06
2
q about jspeex
Ulrich B. Staudinger wrote: > Hi, > > i have: > > public void run(){ > try{ > System.out.println("Opening > mic"); // AudioInput > ai=new AudioInput(t); > // ai.start(); > if(t.input==null){ > AudioFormat format = new