Displaying 20 results from an estimated 3000 matches similar to: "is it ok to call speex_encode_int after speex_bits_write?"
2011 Nov 16
2
Just getting noise
Alright noted, I changed me code so that the state is created in the
constructor and destroyed in the destructor of the object. However I'm
still getting the same issue although I'm sure that would have bit me
sooner or later.
The new code is as follows.
virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize,
size_t& outputSize)
{
short *in=(short*)inputBuffer;
2011 Nov 17
1
Just getting noise
I'm only doing one frame using speex_encode_int greatly simplifies my
code I'm not sure why the sample I was working off of was converting
the shorts to floats then calling the other encode/decode methods.
Based off of your suggestions I tried the following but I get the same
result.
virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize,
size_t& outputSize)
{
2009 Sep 02
3
voice sound like robot voice :)
hy,
here is my speex encoder/decoder .. the sampleRate i use is 16000 and
quality,complexity are at 5.
can someone take a look in to the code and see if there is something that is
making that robot voice
here is a link to colored and numbered code, same as below
http://barvanjekode.gama.us/temp/1257361243.html
thanx.
code
-----------------------
#include "codec.h"
2008 Aug 28
2
speex encode and speex_bits_write buffer size
how many calls can I make to speex_encode_int before calling
speex_bits_write? Can I stuff 10 frames?
- farhan
2011 Sep 29
1
Nothing but rhythm was left after encoding and decoding by speex on ipad(XCode 4.1 48110)
hi,
I tried to encode the voice data read from AudioQueue and then decode
it. There was nothing but rhythm left, it sounds like robot's voice,
but I cannot recognize any word.
The app was compiled by XCode 4.1. Speex 1.0.5 and 1.2.rc1 gave the
same result. When compiling speex 1.0.5, I added them to Xcode
project, set the Header Search Paths, then compiled successfully. When
compiling speex
2005 Oct 04
1
Strange Problem
Hi
I am facing a strange problem. I have integrated speex
codec's narrowband mode in my SIP based server. Then I
tried to integrate the wideband mode. But the program
crashes mysteriously. My encode and decode codes for
wide band mode are exact similiar to that of
narrowband, except the mode initialization, where I
put "speex_wb_mode" instead of "speex_nb_mode".
My
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
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>
2004 Aug 06
2
Speex/Linux/ALSA
First let me introduce myself:
Sr Computer Scientist
20+ yrs SW/HW development
Audio Rookie < 60 days
Intel based computer
Soundblaster 128 PCI
Linux Fedora Core 2
ALSA - Advanced Linux Sound Architecture
ALSA provides the audio and MIDI functionality to the Linux operating system
as of Fedora Core 2 and is the future of Linux (so I have been told)
http://www.alsa-project.org/
I have read
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
hy,
recording and playback is working perfectly without speex.
i have try to set samplerat from 6000 to 441000 and quality from 1 to 10 sam
with complexy, but the best i can get is with 16000 samplerate, 5quality and
3complexy .. but still, the voice that came out is annoying, artificial,
robot ,...
Lp, Tim
+--------------------------+
| email: rico at gama.us |
| www: http://gama.us
2007 Sep 27
1
Need some clarifications about "speex_preprocess_run"
Simple questions:1. when this method is called for each frame, do I have to call them twice for both the encode process and the decode process?2. does preprocessor do preprocessing on raw PCM data or on encoded speex data? I need to clarify this because i want to know when should I call this function, before the encoding process (i.e. preprocess the pcm data) or after the encoding process (i.e.
2007 Jun 01
1
help on Blackfin
hello,
i try to add a speex compression on the TDM Talkthrough on the BF-533 EZ-KIT
LITE but when i compile i obtain the following errors:
[Error li1021] The following symbols referenced in processor 'p0' could not
be resolved:
'speex_bits_destroy [_speex_bits_destroy]' referenced from
'Debug\Process_data.doj'
'speex_bits_init [_speex_bits_init]' referenced from
2006 Feb 14
1
Bug in vbr_analysis
Hi Jean-Marc,
I used the following code after init of the encoder to
get the frame size of my RTP packets.
char pcm_data[3200];
char speex_data[3200];
SpeexBits bits;
memset(pcm_data, '\0', 3200);
memset(speex_data, '\0', 3200);
speex_bits_init(&bits);
speex_bits_reset(&bits);
speex_encode_int(codec_info->enc,
2008 Nov 13
2
decoded sample is completely differen from original one
Hi all,
I have just started playing with speex, and come up with the following code, which just encode a frame of 160 shorts, and the decode it.
For some reason the decoded sample is completely different than the original one. is my code wrong? If so what? Or is it a reasonable which depends of values that weren't correctly set?
Thanks,
Andre
#include <stdio.h>
#include
2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
Hello,
I'm having a problem using Speex - I'm getting white noise/static from the
following process:
(Load File) -> (Encode) -> (Decode) -> (Play)
I know there's no issue with the loading or playing because (Load File)->
(Play) plays the file properly.
I believe the problem lies with the speex_bits_write and
speex_bits_read_from functions, because if I change my encode
2005 Jun 22
1
Newbie - Encoding PCM
Hi all,
i've to encode voice from a voicemodem. I choose speex 1.0.5 for its quality
in voice encoding. I've tried to implement an encoder but unsuccesfully.
Here's my code:
/* ============ SPEEX stream ENCODER
============================================ */
int SPEEX_EncodePCM(struct _IDA_ClientSocket *IDA,char *buffer,unsigned char
*PCM,int num_samples) {
/* buffer point to the
2012 Jun 13
2
need help
hello
could you help in solving the following problem
I want to replace same consecutive words by a single word in a sentence..
for example --- my name name name is micky
so I want the output like this--my name is micky
I want this solution for a text file
can you tell me the code for it??
thanking you in anticipation
--
Shilpa Rai
MSc.(2011-2013)
Applied Statistics and Informatics
Indian
2007 Jul 06
1
bitpack error message
i don't think so. this is my current code:
for(i=0; i<samples;i++){
/*only get max 320 bytes at a time so bits can handle*/
Client->raw_audio[i] = *input++;
Client->temp_audio[i] = Client->raw_audio[i];
Client->session_File[ndx] = Client->temp_audio[i];
ndx+=1;
}
speex_bits_reset(&ebits);
2011 Aug 10
2
Correct detection of bitrate
[This email is either empty or too large to be displayed at this time]
2008 Dec 11
1
preprocessor VAD only rocognize between silence and not silence
Hello,
in my project im using speex 1.2rc1 and the preprocessor VAD seems to
only separate complete silence from not complete silence frames.
The Speex Manual, you can read "The voice activity detector (VAD)
provided by the preprocessor is more advanced than the one directly
provided in the codec."
but if you go to the source code in preprocess.c line 995 "/* FIXME:
This VAD