Displaying 20 results from an estimated 1000 matches similar to: "using unsigned short instead of short for input frame"
2012 Mar 06
1
Help about error in linking to libspeex.a
Thanks for the reply,
i added (LDFLAGS += -L/usr/local/lib -lspeex -lm) to Makefilebut the error is still appearing !
/tmp/ccDFH8gi.o(.text+0x179c): In function `main':
: undefined reference to `BlinkC$speex_bits_init'
collect2: ld returned 1 exit status
make: *** [exe0] Error 1
i am trying to guess what is missed to correctly link to the lib .Do you have suggestions?
Regards,
2012 Mar 14
1
converting unsigned short sample to signed short sample
Thanks for replying.
actually 2^15 in decimal is the same as 0x8000 in hex.
the idea is clear for me that i should scale down each unsigned sample by 0x8000 for becoming signed. I hope that will work correctly as input raw samples to Speex codec. do you think so ?
Regards,
Mash'al
________________________________
From: Steve Checkoway <s at pahtak.org>
To: Mashal al-shboul
2012 Mar 15
0
converting unsigned short sample to signed short sample
Hi Mashal,
2012/3/14 Mashal al-shboul <shboul8989 at yahoo.com>:
> Hi Blaise Potard,
> Thank you for help.
> Actually,i am sure that my samples are unsigned? , specifically, of type
> uint16_t which is unsigned 2-bytes, these samples are provided by an audio
> driver for an audio subsystem (microphone ADC...) in a wireless sensor
> node(intelmote2 ), following is the
2012 Mar 14
4
converting unsigned short sample to signed short sample
Thanks a lot for replying,
The question now is , after subtracting 32767 from each unsigned sample, will the new signed samples represent the same original voice ?
???? For explanation, assume "Hi" is said in 8000 unsigned sample ,if i subtract 32767 from each sample and play the resulting 8000 sample as signed PCM samples,will they be "Hi" ?!
Forgive me about my questions ,
2012 Mar 14
0
converting unsigned short sample to signed short sample
I don't understand why you're subtracting 2^15 - 1. Assuming you really do have unsigned samples (which is very odd) that have 0x8000 as the mid point of the range, then you need to subtract 0x8000, as I believe I pointed out already.
By mid point, I mean if you have a pure tone (i.e., a sine wave) that has unsigned range 0 to 0xffff, then the mid point is 0x8000. The mid point should be
2011 Sep 04
1
Speex VAD always returning 1
This works well. Thanks for the link. However I am curious about something. Speex requires a VAD for the VBR mode and the comfort noise preservation. Is the Speex portion for this different than the VAD result returned from the preprocessor call?
Vas
________________________________
From: speex-dev-bounces at xiph.org [speex-dev-bounces at xiph.org] On Behalf Of Ken Smith [ken at alanta.com]
2013 May 22
0
Library without malloc
I need to set the content to 0 because actually is not using malloc(), it uses calloc() that does set the memory to 0.
Best Regards
---------------------------------------------
Helios Cuevas L?pez
Embedded Software Engineer
Castle Care-tech Ltd.
First Floor, 6 Bracknell Beeches,
Old Bracknell Lane West,
Bracknell, Berkshire, RG12 7BW
Office - 01344 469470
Direct Dial - 01344 469485
FAX - 01344
2012 Feb 28
2
Need for help about using vorbis in embedded system
Hi All,
?? I am a new member to the vorbis-dev mailing list. i hope that u receive the help that i've been searching for.
I need to compress audio samples captured by wireless sensor node (16-bit PCM at 8Khz). can i use vorbis i such an embedded system environment that has the following HW/SW specifications:
-416 MHz Microprocessor(ARM architecture, Intel Xscale family)
-32 MB RAM
Beside
2011 Aug 29
0
Speex VAD always returning 1
For what it's worth, I've had significantly better luck with the WebRtc VAD.
It's pretty good.
http://code.google.com/p/webrtc/source/browse/#svn%2Ftrunk%2Fsrc%2Fcommon_audio%2Fvad%2Fmain%2Fsource
In general, the WebRTC voice engine seems to be more sophisticated and
mature than the Speex preprocessor (as opposed to the Speex codec, which is
pretty good).
Ken Smith
Cell:
2013 May 22
0
Library without malloc
Yanick & Jean-Marc,
First of all thank you very much for taking your time to try to help me.
Hi Yanick,
This is what I am trying to do, but for example the function SpeexPreprocessState *speex_preprocess_state_init has lots of pointers that are initialize with static inline void *speex_alloc (int size). So I am trying to convert all this pointers into arrays but it is getting messy trying
2012 Mar 06
1
Help about error in linking to libspeex.a
Hi All,
i have configured speex1.2rc1 for xscale-elf (ARM architecture) ,then executed MAKE and MAKE INSTALL. so, i obtained libspeex.a in the /usr/local/lib with libogg.a compiled as well. but i when i link the library to my program (by adding LDFLAGS += -lspeex -lm ), and try to compile, i get this error:
/usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld: cannot find -lspeex
collect2:
2012 Apr 07
1
The decoded voice is just noise and totally different from the original !
Hi all speex developers,
??? I have encoded 10 seconds buffer of Mic voice (raw) using speex on an embedded device, then transmitted it to a PC where i decoded the voice,in a way similar to the sampleenc.c and sampledec.c on website,
?BUT my problem is that the decoded voice is totally different from the original,what i hear is just noise !!
what is possible to be the reason ?
Any help is
2011 Aug 29
3
Speex VAD always returning 1
From 1.2rc1 source code:
preprocess.c:
/* FIXME: This VAD is a kludge */
st->speech_prob = Pframe;
if (st->vad_enabled)
{
if (st->speech_prob > st->speech_prob_start || (st->was_speech &&
st->speech_prob > st->speech_prob_continue))
{
st->was_speech=1;
return 1;
} else
{
st->was_speech=0;
return 0;
}
} else {
return 1;
}
AND
case
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>
2010 Jul 12
3
(no subject)
Hi all,
I want to add the red color under the standard normal curve to the right
of 1.96.
Can anyone give me a hand? Please see the code below.
Thank you.
x <- seq(-4, 4, length=100)
hx <- dnorm(x)
par(pty="s")
plot(x, hx, type="l", xlab="z value",
ylab="Density", main="density of N(0,1)")
abline(v=1.96, col="red")
2002 Oct 15
5
Specification change requests
Hi,
as Conrad suggested, I've made a complete list of all points in the
specification, which I beleive are errors, or where the explanation
is unclear, contains unneccessary steps and so on.
I hope someone has time to look through the points and if and when
accepting or rejecting them be so very kind and inform me about it.
I will also once again try to work through the residue
2011 Aug 05
3
samba4 asn1_compile issue
Hi,
I am trying to do cross compile Samba4.?Build system generating two binary asn1_compile and compile_et to generate .c files which will then build for our platform.
But it can not execute both binary files.
[ 198/3298] Compiling ASN1 source4/heimdal/lib/asn1/kx509.asn1
/bin/sh: ../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin/asn1_compile: cannot execute binary file
Waf:
2009 Apr 26
1
Stochastic Gradient Ascent for logistic regression
Hi. guys,
I am trying to write my own Stochastic Gradient Ascent for logistic
regression in R. But it seems that I am having convergence problem.
Am I doing anything wrong, or just the data is off?
Here is my code in R -
lbw <-
read.table("http://www.biostat.jhsph.edu/~ririzarr/Teaching/754/lbw.dat"
, header=TRUE)
attach(lbw)
lbw[1:2,]
low age lwt race smoke ptl ht ui ftv
2011 Sep 22
3
Wine on non-Unix platforms
Greetings everyone. Let me start by stating that I appreciate the enormous undertaking that Wine has been, and I am not suggesting that the ideas I will ask about in this post would be easy (or even possible) to implement, so there's no need to flame the n00b.
As I understand it, Wine is an implementation of the Windows API for Linux and other Unix-like operating systems (Mac OS X, FreeBSD,
2012 Feb 08
28
[PATCH v3 0/6] initial suspend support
This patch series makes suspend support in qemu alot more useful. Right
now the guest can put itself into s3, but qemu will wakeup the guest
instantly. With this patch series applied the guest will stay suspended
instead and there are a few events which can kick the guest out of
suspend state: A monitor command, ps/2 input, serial input, rtc. Not
much yet, but it''s a start with the