search for: audioinputstream

Displaying 17 results from an estimated 17 matches for "audioinputstream".

2008 Jan 07
0
JSpeex - Unsupported conversion
...ot; SpeexSave in.wav out.wav Exception in thread "main" java.lang.IllegalArgumentException: Unsupported conversion: SPEEX_quality_3, 44100.0 Hz, -1 bit, stereo, audio data from PCM_SIGNED, 44100.0 Hz, 16 bit, stereo, little-endian, audio data at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:571) at SpeexSave.main(SpeexSave.java:36) And here is my program: import java.io.*; import javax.sound.sampled.*; // Speex imports. import org.xiph.speex.*; import org.xiph.speex.spi.*; class SpeexSave { public static void main(String args[]) { if (args....
2008 Jan 08
0
JSpeex - Unsupported conversion
...Exception in thread "main" java.lang.IllegalArgumentException: > Unsupported > conversion: SPEEX_quality_3, 44100.0 Hz, -1 bit, stereo, audio data > from > PCM_SIGNED, 44100.0 Hz, 16 bit, stereo, little-endian, audio data > at > javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java: > 571) > at SpeexSave.main(SpeexSave.java:36) > > > And here is my program: > > import java.io.*; > import javax.sound.sampled.*; > > // Speex imports. > import org.xiph.speex.*; > import org.xiph.speex.spi.*; > > class SpeexSave {...
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 transcode it. Are you sure that > you are receiving data from the underlying inputstream??? Yes, it can recieve data from the underlying input stream....
2004 Aug 06
2
q about jspeex
...> t.input.open(format,44100); > System.out.println(" Mic opened"); > > t.input.start(); > System.out.println("Constructing speex encoder."); > pcm2speex=new Pcm2SpeexAudioInputStream(new > AudioInputStream(t.input), format, AudioSystem.NOT_SPECIFIED); > System.out.println("Speex encoder constructed."); > System.out.println("*** Speex info: "); > System.out.println("Bitrate: &g...
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...
2004 Aug 06
0
q about jspeex
...ch B. Staudinger wrote: > 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 transcode it. Are you sure that >> you are receiving data from the underlying inputstream??? > > > Yes, it can recieve data from the...
2004 Aug 06
0
q about jspeex
Hi, 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 transcode it. Are you sure that you are receiving data from the underlying inputstream??? One point to note though is that is you are receiving 44kHz audio, it w...
2009 Mar 02
2
[Fwd: RE: Mixing inputstreams.]
...rammer, we have created an application to play multiple local ogg sound files, all triggered from a single 'play' event. The event triggers an instance of the ogg.vorbis player for each file to be played. However we are finding that these 'tracks' are not synchronised, since the audioinputstream for each is passed to the dataline, and so gets handled by the OS. We are now looking for a way to combine these inputstreams, into a single input stream, (mixed), so that the combined stream can be output to the dataline, and so guarantee, that the combined or mixed sound is indeed synchronise...
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 (TargetDataLine.class, format, 8000); TargetDataLine tdl = (TargetDataLine) Audio...
2010 May 06
1
Encoding a wave file with a bad header
...EEX_Q5, wavFormat.getSampleRate(), -1, // sample size in bits wavFormat.getChannels(), -1, // frame size -1, // frame rate false); // little endian AudioInputStream spx = AudioSystem.getAudioInputStream(speexFormat, ais); AudioSystem.write(spx, SpeexFileFormatType.SPEEX, getOutputStream()); I then use speex C library to decompress on the receiving end. In one case where audio comes from a certain source (headers are properly formed) the compression/de...
2004 Aug 06
0
JSpeex help
...ath: MIME-Version: 1.0 To: Sender: owner-speex-dev@xiph.org <p><p><p><p><p><p><p><p>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 (TargetDataLine.class, format, 8000);TargetDataLine tdl = (TargetDataLine) Aud...
2004 Aug 06
0
Lost ogg sync using jspeex
...DataLine.Info(SourceDataLine.class,audioFormat,44100); TargetDataLine 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, AudioS...
2004 Aug 06
0
Lost ogg sync using jspeex
...DataLine.Info(SourceDataLine.class,audioFormat,44100); TargetDataLine 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, AudioS...
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
0
Please Help, Lost ogg sync using jspeex
...audioFormat,44100);<BR> TargetDataLine targetDataLine = (TargetDataLine) 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 Pcm2SpeexAudioI...
2004 Aug 06
0
q about jspeex
...t.input.open(format,44100); System.out.println(" Mic opened"); t.input.start(); System.out.println("Constructing speex encoder."); pcm2speex=new Pcm2SpeexAudioInputStream(new AudioInputStream(t.input), format, AudioSystem.NOT_SPECIFIED); System.out.println("Speex encoder constructed."); System.out.println("*** Speex info: "); System.out.println("Bitrate: "+pcm2speex.ge...
2010 Mar 20
0
Decode file written from JSpeex using C/C++ API?
...he PDF documentation and I have a rough idea how to decode a raw stream. (I'm assuming the sampledec source works with raw speex audio samples and doesn't handle ogg containers.) 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 wavForm...