search for: audioformat

Displaying 20 results from an estimated 22 matches for "audioformat".

2004 Aug 06
0
Lost ogg sync using jspeex
....sound.sampled.*; import org.xiph.speex.spi.*; import java.util.*; import java.net.*; import java.io.*; public class AudioCapture { public static void main(String args[]) { int bufferlength=44100; int framelength=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");...
2004 Aug 06
0
Lost ogg sync using jspeex
....sound.sampled.*; import org.xiph.speex.spi.*; import java.util.*; import java.net.*; import java.io.*; public class AudioCapture { public static void main(String args[]) { int bufferlength=44100; int framelength=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");...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...NT face=Arial size=2>public class AudioCapture{<BR> public static void main(String args[])<BR> {<BR> int bufferlength=44100;<BR> int framelength=1280;<BR> int frameduration=1000;<BR> Vector 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("Datali...
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
...kOutputBus, &flag, sizeof(flag)); XThrowIfError(status, "3"); // Describe format AudioStreamBasicDescription audioFormat; audioFormat.mSampleRate = 8000.00; audioFormat.mFormatID = kAudioFormatLinearPCM; audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian |...
2011 Nov 24
1
Wrong WAV AudioFormat
Hi, I am using vorbis-tools 1.4.0 on Fedora 14 to convert Ogg Vorbis files to MS WAV format. It seems that ogg123 is encoding the wrong AudioFormat value. For Uncompressed PCM, the AudioFormat should be 1 but for some reason, it is being encoded in the WAV file as -1. This used to work on some prior version of either Fedora or vorbis-tools. I thought I'd ask in the email list in case it's a known matter.
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...a 160 buffer, but I get a " SpeexEncoder 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 * @thro...
2010 May 06
1
Encoding a wave file with a bad header
If I use Speex, JSpeex actually, to compress an otherwise valid wave file with zero lengths in the header would it impact the compression at all? Here's what I'm doing during compression in Java: AudioFormat wavFormat = ais.getFormat(); AudioFormat speexFormat = new AudioFormat(SpeexEncoding.SPEEX_Q5, wavFormat.getSampleRate(), -1, // sample size in bits wavFormat.getChannels(), -1, // fr...
2004 Aug 06
0
Getting a Side band error when decoding with Jspeex
...and trying to read decoded bytes. But here the decoder is giving me an error "saying sideband error" and values after it vary with every message. I donno the reason for this, but I guess it is because of the format in which I am reading Audio Stream. I am reading using the following AudioFormat. Here it is a 16 bits/sample stereo sound. but Pcm2SpeexAudioInpputStream needs an input stream which would give a 16 bits/sample mono sound. AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100, 16, 2, 4, 44100, false); I am attaching the code I have written can any...
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
...lic void run(){ > try{ > System.out.println("Opening > mic"); // 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) > AudioSy...
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
0
q about jspeex
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 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);...
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) AudioSystem.getLine (targetInfo); AudioInputStream auin=new AudioInputStream (tdl); PipedO...
2008 Jan 07
0
JSpeex - Unsupported conversion
...nputStream = null; try { audioInputStream = AudioSystem.getAudioInputStream(srcFile); } catch (Exception e) { System.out.println("Exception: " + e.getMessage()); e.printStackTrace(); return; } AudioFormat srcFormat = audioInputStream.getFormat(); AudioFormat targetFormat = new AudioFormat(SpeexEncoding.SPEEX_Q3, srcFormat.getSampleRate(), -1, // sample size in bits srcFormat.getChannels(),...
2008 Jan 08
0
JSpeex - Unsupported conversion
...{ > audioInputStream = AudioSystem.getAudioInputStream > (srcFile); > } > catch (Exception e) { > System.out.println("Exception: " + e.getMessage()); > e.printStackTrace (); > return; > } > AudioFormat srcFormat = audioInputStream.getFormat(); > > AudioFormat targetFormat = > new AudioFormat(SpeexEncoding.SPEEX_Q3 , > srcFormat.getSampleRate(), > -1, // sample size in bits > srcFor...
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 srcFormat.getChannels(),...
2010 Mar 20
0
Decode file written from JSpeex using C/C++ API?
...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(), -1, // frame size -1, // frame rate...
2004 Aug 06
0
q about jspeex
...try{ >> System.out.println("Opening >> mic"); // >> 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 = (TargetDat...
2004 Aug 06
0
JSpeex help
...lt;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) AudioSystem.getLine (targetInfo);AudioInputStream auin=new AudioInputStream (tdl);Piped...
2003 Mar 09
0
ogg123 --end 1:59 patch.ogg
...easy to handle with a little shell/perl script. If the patch is not accepted we can live with it. After all it is only a few people who might find it usefull - which is a minority group identified as "blind Linux users". 1] http://www.daisy.org/publications/specifications/daisy_202.html#audioformats best regards -- Hamletsgade 4 - 201, DK-2200 København N, Phone: +45 3582 9079 Schou Industries ApS http://schou.dk/ CVR: 26 13 44 39 -------------------------------------------------------------- Please don't call me at all, (E-)mail is sufficient) -- Anne Bezemer ------------...