Displaying 9 results from an estimated 9 matches for "pipedinputstream".
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.o...
2004 Aug 06
3
q about jspeex
...g to need
> 640 samples, or 1280 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...
2004 Aug 06
0
Lost ogg sync using jspeex
...tem.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 SpeexPlayer(pout);
//Speex2PcmAudioInputStream speex2pcm=n...
2004 Aug 06
0
Lost ogg sync using jspeex
...tem.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 SpeexPlayer(pout);
//Speex2PcmAudioInputStream speex2pcm=n...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
....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> SpeexPlayer speexPlayer = new SpeexPlayer(pout);<BR> //S...
2004 Aug 06
0
JSpeex help
...oding.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) {
int n=auin.read(frame, 0, frame.length);...
2004 Aug 06
0
JSpeex help
...coding.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) { int
n=auin.read(frame, 0,
frame.length); Sy...
2004 Aug 06
0
q about jspeex
Hi,
i changed the read method after constructing a
pipedinputstream/opipedoutputstream to
int n=auin.read(frame, 0, frame.length);
System.out.println(""+n+" bytes read.");
pout.write(frame);
int m=pcm2speex.read();
Syst...
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