Displaying 20 results from an estimated 200 matches similar to: "Speex wrapper functions for Visual Basic"
2005 Sep 22
1
Noise :-(
Hi all,
i use speex preprocessor features in this way:
===================================
#define NN 160 /* 20msec di audio */
...
int tbc=0,c,d,ret;
spx_int16_t TEMP_Buffer[NN];
char DLECODE;
/* Inizializza il preprocessore Speex se non inizializzato */
if(Modem->speex_pp_state == NULL) {
Modem->speex_pp_state = speex_preprocess_state_init(NN,AUDIO_SAMPLERATE);
}
2005 Oct 11
1
noise when passing trougth speex_preprocess
Hi all,
as in subject, speex_preprocess inject noise in my data. Someone can help ?
Here's the way that i'm using:
#define NN 160 /* 20msec di audio */
#define AUDIO_SAMPLERATE 8000
spx_int16_t TEMP_Buffer[NN];
speex_pp_state = speex_preprocess_state_init(NN,AUDIO_SAMPLERATE);
c = denoise;
speex_preprocess_ctl(speex_pp_state, SPEEX_PREPROCESS_SET_DENOISE,&c);
c = agc;
2005 Feb 09
0
encoding speex, (insanity looming)
In short try calling speex_encode_int and speex_decode_int.
The calls to speex_encode and speex_decode expects the data to be a floating
point values. The data is passed by pointer and the compiler does not do
the conversion. This is why you are getting the segfault on decode as the
short is 16-bits and a standard float is 32-bits.
Tom
-----Original Message-----
From:
2004 Aug 06
0
Invalid mode encountered: corrupted stream?
Hi,
in my application i quite often (not allways) get those two warning:
"Invalid mode encountered: corrupted stream?"
"Invalid wideband mode encountered: corrupted stream?"
The stream is not corrupted but i wish to know what those warning mean to
correct my code.
My encode and decode routines are those (libspeex 1.1.4):
SpeexBits enc_bits, dec_bits;
void *enc_state,
2007 Jul 25
0
Problem with asterisk-addons - checking for mysql_init in -lmysqlclient... no
I'm trying to build the MySQL components in asterisk-addons but no
luck so far. I hope that you can help.
I have MySQL installed.
rpm -qa indicates:
MySQL-server-5.0.22-0
MySQL-devel-5.0.22-0
MySQL-client-5.0.22-0
rpm -ql MySQL-devel | grep client indicates:
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.la
2005 Feb 09
1
encoding speex, (insanity looming)
Hi Tom,
Thanks for your reply, I'm having a few difficulty's following you
advise. You mention that I should be calling 'speex_encoder_int' &
'speex_decoder_int', I'm having problems finding these functions in
the speex header. I am currenlty calling speex_encoder_init &
speex_decoder_init in my test code, I have repeated the relevent bits
of the example
2005 Feb 09
2
encoding speex, (insanity looming)
Hi All,
I'm very new to speex and in fact handling audio at all, it seems I have run
in to a problem I seem unable to fix. I'm trying to take audio from a microphone
using alsa, then encode it as speex and save to disk. I have been
wondering if it has something to do with endian type, but speexenc and
speexdec works fine.
Currently I have the following setup:
Platform:
2006 Aug 06
0
Speex + Ogg package
If by webchat you mean anything interactive, then I can already tell you
what the problem is. TCP+Ogg. For anything real-time, you want UDP/RTP
without Ogg. Also, you need to take into account the fact that computers
do *not* have accurate clock and their soundcards drift. None of these
problems are fatal, but you need to take that into account in the
design.
Jean-Marc
On Mon, 2006-08-07 at
2014 Aug 14
0
Encoder example for 24-bit files
Ian's explanation below was helpful:
On Thu, Aug 14, 2014 at 7:53 AM, Ian Nartowicz <ian at nartowicz.co.uk> wrote:
> The sample rate should take care of itself. I suspect your difficulty is how
> the 24 bit samples are represented in the WAV data and how to pack them into
> the Flac buffer?
>
> WAV samples are stored in either 8, 16, or 32 bit words, using the smallest
2006 Aug 06
2
Speex + Ogg package
I'm currently working on a speex + theora webchat.
I have both working alone, but to make them work together and to know where
the package goes, I'm trying to use ogg packages.
With theora there has been no problem, but with speex I can't make it work.
The problem is that for a second it works great, but then it begings to gain
lag, and in a little time it has 5-10 lag seconds (into
2006 Dec 29
0
using speex in C#
Hi SAITAMA Taro,
I have been using speex-1.2beta1 dll in our voice application written with
C#. In order to use Speex correctly firstly I advice to you examination
speexenc and speexdec projects.
I have used unsafe code and fixed statements in C#. I have added following
method to library and I used that instead of speex_encoder_init simply.
void *speex_encoder_init_new(int modeID)
{
const
2011 Jul 15
0
Writing test for CacheHelper
Hi,
I''m working to patch actionpack/lib/action_view/helpers/
cache_helper.rb so that it doesn''t throw when ouput_buffer isn''t
ActionView::OutputBuffer but is still html_safe. In 3-0-stable the
function contains the following if:
if output_buffer.is_a?(ActionView::OutputBuffer)
safe_output_buffer = output_buffer.to_str
fragment =
2009 Feb 16
2
working with Blocks
hey
I am able to do:
block_func(x, y) do
....
end
But if I try to do this:
form.block_func(x, y) do
....
end
I get an error like this:
syntax error, unexpected '')''
@output_buffer.concat " "; @output_buffer.concat
(( form.block_func(x, y) do ).to_s);
@output_buffer.concat "\n"
Any ideas?
thanks
2006 Aug 06
2
Speex + Ogg package
sorry, no webchat, is a videoconference program. And I'm using UDP as you
can read down on the mail.
The problem is that speex packages alone work great, but to split
speex/theora packages on the arrive I need to use some kind of container,
and I'm trying ogg.
On 8/7/06, Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote:
>
> If by webchat you mean anything interactive,
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
From: Gene Cumm <gene.cumm at gmail.com>
Fix several calls to more_printf() as eventually printf() is called
without a literal string which generate warnings with gcc and lead to
errors when -Werror is active.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
The message "format not a string literal and no format arguments" at
first seems strange but by doing this change
2011 Jul 26
0
More frames in one packet
Hi,
I read in the documentation something about how to realize packing more than one encoded frame into a packet. Before I read this, I always encoded every frame seperate and packet them as following together:
[encoded length][encoded frame][encoded length][encoded frame]...
But if I understood the docu correct, it should be easier:
I call speex_encode_int() for every frame until the whole
2012 Mar 11
0
problem: The decoded frame is not as the original one
Hi All,
i need your help in determining the problem in the following sample code (taken from speex manual) for fixed point encoding.
i tested encoding a 160 sample frame and then decoding it back But The problem is that the decoded frame is totally different from the original frame(see output below).What is the possible reason for this?.thanks for any help
#include<stdio.h>
2012 Mar 10
3
problem: The decoded frame is not as the original one
Hi All,
i need your help in determining the problem in the following sample code (taken from speex manual) for fixed point encoding.
i tested encoding a 160 sample frame and then decoding it back But The problem is that the decoded frame is totally different from the original frame(see output below).What is the possible reason for this?.thanks for any help
#include<stdio.h>
2005 Aug 16
1
ov_raw_tell() not working properly!
I'm working on an application where I need to record
the current playing position and return to it later.
and I need this to be done the most efficient way, so
I used ov_raw_tell() and ov_raw_seek() because the
documentation says they are the best when speed is a
concern.
but the problem is that sometimes ov_raw_tell returns
the same value before and after calling ov_read;
here's an
2005 Jun 06
1
SpeexBits Questions
The example in the documentation demonstrates using speex_bits_reset
before encoding and decoding each frame.
"
speex_bits_reset(&bits);
speex_encode(enc_state, input_frame, &bits);
nbBytes = speex_bits_write(&bits, byte_ptr, MAX_NB_BYTES);
"
What happens if this is not done? I think I'm missing the point of
having a SpeexBits object.