search for: audiosystem

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

2004 Aug 06
0
Lost ogg sync using jspeex
...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("TargetDataLine Created"); //SourceDataLine sourceDataLine = (SourceDataLine) AudioSystem.getLine(outputDataLineInfo); AudioInputStream auin=new AudioInputStream(targetDataLine); PipedOutputStream pout=new PipedOutputStream(); //Pip...
2004 Aug 06
0
Lost ogg sync using jspeex
...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("TargetDataLine Created"); //SourceDataLine sourceDataLine = (SourceDataLine) AudioSystem.getLine(outputDataLineInfo); AudioInputStream auin=new AudioInputStream(targetDataLine); PipedOutputStream pout=new PipedOutputStream(); //Pip...
2008 Jan 07
0
JSpeex - Unsupported conversion
...eex/src/java" 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[])...
2008 Jan 08
0
JSpeex - Unsupported conversion
...av 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.*; > &gt...
2010 May 06
1
Encoding a wave file with a bad header
...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/decompression works...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...nfo = 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);<BR> System.out.println("TargetDataLine Created");<BR> //SourceDataLine sourceDataLine = (SourceDataLine) AudioSystem.getLine(outputDataLineInfo);<BR> AudioInputStream auin=new AudioInputStream(targetDataLine);<BR> PipedOutputStream po...
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...ncoder requires 320 samples to process a Frame, not 160" error. Maybe there'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 nb...
2010 Mar 20
0
Decode file written from JSpeex using C/C++ API?
...d 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 wavFormat.getChannels(),...
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
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
2
q about jspeex
...oFormat 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.start(); > System.out.println("Constructing speex enc...
2004 Aug 06
0
q about jspeex
...){ 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.start(); System.out.println("Constructing speex encoder.");...
2004 Aug 06
0
JSpeex help
...tream 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, AudioSystem.NOT_SPECIFIED); tdl.open(format,8000); t.input.start(); double r...
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
...>> 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.start(); >> System.out.println(&quo...
2004 Aug 06
0
JSpeex help
...eam 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, AudioSystem.NOT_SPECIFIED);tdl.open(format,8000);t.input.start();double ra...
2007 Jun 24
0
JSpeex help
...ter. > > 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(); > > whi...