Displaying 14 results from an estimated 14 matches for "getframesize".
2003 May 09
1
OH323 Channel Driver buffer sizes
...ood thing?
Recording
to 160 bytes and playing to 8 bytes buffers.... When looking into the
code,
it looks to me as if there has been some trial and error approach?
(WrapH323EndPoint::OpenAudioChannel)
/************
bufSize = GetFrames(mediaFormat) *
mediaFormat.GetFrameSize();
**********/
if (dir == RECORDER) {
bufSize = GetFrames(mediaFormat) *
mediaFormat.GetFrameSize();
WRAPTRACE(5, "Frames " <<
GetFrames(mediaFormat));
} else {
/********...
2011 Jul 29
1
[LLVMdev] Problem with stack arguments
...this code:
movq ARG_5, (%rsp)
callq fun_foo_1
.Ltmp4:
subq $8, %rsp
I use a garbage collector with postcall safe points (.Ltmp4 is such)
which needs to know the frame size, for
each safe point. The problem is that at .Ltmp4 the frame size is
actually different from what getFrameSize() would return.
So is there a way to force generation of code which pushes arguments ?
For example :
pushq ARG_5
callq fun_foo_1
.Ltmp4
Thnks,
Chris Stavrakakis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/atta...
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
...onstructed.");
> System.out.println("*** Speex info: ");
> System.out.println("Bitrate:
> "+pcm2speex.getEncoder().getBitRate());
> System.out.println("Frame size:
> "+pcm2speex.getEncoder().getFrameSize());
> System.out.println("Complexity:
> "+pcm2speex.getEncoder().getComplexity());
> System.out.println("Mode:
> "+pcm2speex.getEncoder().getMode());
> System.out.println("Sampling rate:
> "+...
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...AudioSystem.isLineSupported(info))
throw new Exception("no line supported");
line = (TargetDataLine)AudioSystem.getLine(info);
line.open(format);
buffer = new byte[320];
byte[] mybuffer = new byte[4000000];
line.start();
System.out.println("Frame size: "+format.getFrameSize());
int numBytesRead;
System.out.println("The buffer length is "+buffer.length+"\nMy packet buffers are: "+nbBytes+"\n");
System.out.println("My byffer bytes are: "+obBytes+"\nNumber of packets: "+myNum+"\nSize: "+myNum*nbBytes+"...
2004 Aug 06
0
q about jspeex
...("Speex encoder constructed.");
System.out.println("*** Speex info: ");
System.out.println("Bitrate:
"+pcm2speex.getEncoder().getBitRate());
System.out.println("Frame size:
"+pcm2speex.getEncoder().getFrameSize());
System.out.println("Complexity:
"+pcm2speex.getEncoder().getComplexity());
System.out.println("Mode:
"+pcm2speex.getEncoder().getMode());
System.out.println("Sampling rate:
"+pcm2speex.getEncoder().getS...
2007 Jun 24
0
JSpeex help
...g 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 )
> {
> int count = line.read( buffer , 0 , buffer.length );
>
> if( count > 0 )
> ostream.write( buffer , 0 , count );
> }
>
> ostream.close();
>
&...
2004 Aug 06
0
q about jspeex
...>> System.out.println("*** Speex info: ");
>> System.out.println("Bitrate:
>> "+pcm2speex.getEncoder().getBitRate());
>> System.out.println("Frame size:
>> "+pcm2speex.getEncoder().getFrameSize());
>> System.out.println("Complexity:
>> "+pcm2speex.getEncoder().getComplexity());
>> System.out.println("Mode:
>> "+pcm2speex.getEncoder().getMode());
>> System.out.println("Sampling...
2004 Aug 06
0
C++ wrapper for speex
...r
for use with my VoIP program. I think they're pretty high level and
easy to use. They handle all buffer allocation internally to make life
easy. Here's a simple little example that happens to use VAD:
// buf is float[] or short int[], buflen is multiple of frame size
// (there is a getFrameSize() method for both classes)
// Encode some audio
tgAudioEncoder enc(16000); // you could do 8000 instead
enc.enableVAD(1);
enc.encode(buf, buflen);
unsigned char *compressed = enc.getOutput();
int clen = enc.getOutputLen();
int speechDetected = enc.getSpeechDetected();
// Decode it
tgAudioDecoder...
2004 Aug 06
1
C++ wrapper for speex
...method call, and before you try to call any
methods (beyond the constructor). For example:
if (enc.err) MessageBox(NULL, enc.errText, "doh", 0);
3) Did you initialize the classes with 8000 as the
sample rate? Are you sure your input data is 8000Hz,
16-bit mono?
4) Try checking enc.getFrameSize() and make sure it's 160.
5) Make sure lpHdr->dwBufferLength is always 160 or a
multiple of 160.
6) You don't have to do the float conversion yourself -
you can pass encode() an array of short ints.
7) If you're still stuck, single step through each line
of code with a debugg...
2004 Aug 06
0
Lost ogg sync using jspeex
...ex encoder.");
System.out.println("Speex encoder constructed.");
System.out.println("Speex info: ");
System.out.println("Bitrate: "+pcm2speex.getEncoder().getBitRate());
System.out.println("Frame size: "+pcm2speex.getEncoder().getFrameSize());
System.out.println("Complexity: "+pcm2speex.getEncoder().getComplexity());
System.out.println("Mode: "+pcm2speex.getEncoder().getMode());
System.out.println("Sampling rate: "+pcm2speex.getEncoder().getSamplingRate());
System.out.printl...
2004 Aug 06
0
Lost ogg sync using jspeex
...ex encoder.");
System.out.println("Speex encoder constructed.");
System.out.println("Speex info: ");
System.out.println("Bitrate: "+pcm2speex.getEncoder().getBitRate());
System.out.println("Frame size: "+pcm2speex.getEncoder().getFrameSize());
System.out.println("Complexity: "+pcm2speex.getEncoder().getComplexity());
System.out.println("Mode: "+pcm2speex.getEncoder().getMode());
System.out.println("Sampling rate: "+pcm2speex.getEncoder().getSamplingRate());
System.out.printl...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...; System.out.println("Speex encoder constructed.");<BR> System.out.println("Speex info: ");<BR> System.out.println("Bitrate: "+pcm2speex.getEncoder().getBitRate());<BR> System.out.println("Frame size: "+pcm2speex.getEncoder().getFrameSize());<BR> System.out.println("Complexity: "+pcm2speex.getEncoder().getComplexity());<BR> System.out.println("Mode: "+pcm2speex.getEncoder().getMode());<BR> System.out.println("Sampling rate: "+pcm2speex.getEncoder().getSamplingRate());...
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