Displaying 4 results from an estimated 4 matches for "datalineinfo".
2004 Aug 06
0
Lost ogg sync using jspeex
...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");
//DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100);
TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineIn...
2004 Aug 06
0
Lost ogg sync using jspeex
...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");
//DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100);
TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineIn...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...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("Dataline.Info Created");<BR> //DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100);<BR> TargetDataLine targetDataLine = (TargetDataLine) Aud...
2007 Jun 24
0
JSpeex help
...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();
>
> while( state == 1 )
>...