Displaying 20 results from an estimated 73 matches for "sampledec".
2006 Jun 10
1
[PATCH] bug in sample code sampledec.c
Hi
there is a small bug in the sample code 'sampledec.c' here:
http://www.speex.org/manual2/node12.html#SECTION000121000000000000000
it is trying to destroy the encoder of the "decoder" state, this
patch should fix it:
Index: doc/sampledec.c
===================================================================
--- doc/sampledec.c...
2005 Oct 17
3
Error Executing sampledec in VC++
hey guys, I just compiled an application similar to sampledec.c (for speex
1.1.10) and it was fine but when I executed it, the app exited without doing
anything. I'm using MS VC 6.0 and this was all I got - First-chance
exception in sampledec.exe : 0xC0000005: Access Violation. Has anyone
encountered this / does anyone know how to deal with it? by the way...
2005 Oct 17
0
Error Executing sampledec in VC++
...solve the problem?
Steve
My guess is that speex_decoder_init() should be outside the while().. loop
as speex_decoder_destroy() is also outside.
----- Original Message -----
From: Mo Win
To: speex-dev@xiph.org
Sent: Monday, October 17, 2005 8:05 AM
Subject: [Speex-dev] Error Executing sampledec in VC++
hey guys, I just compiled an application similar to sampledec.c (for speex 1.1.10) and it was fine but when I executed it, the app exited without doing anything. I'm using MS VC 6.0 and this was all I got - First-chance exception in sampledec.exe : 0xC0000005: Access Violation. Has...
2005 Oct 17
6
Error Executing sampledec in VC++
...) should be outside the while()..
> loop
> as speex_decoder_destroy() is also outside.
>
> ----- Original Message -----
> *From:* Mo Win <mowin.dev@gmail.com>
> *To:* speex-dev@xiph.org
> *Sent:* Monday, October 17, 2005 8:05 AM
> *Subject:* [Speex-dev] Error Executing sampledec in VC++
>
> hey guys, I just compiled an application similar to sampledec.c (for speex
> 1.1.10) and it was fine but when I executed it, the app exited without
> doing anything. I'm using MS VC 6.0 and this was all I got - First-chance
> exception in sampledec.exe : 0xC0000005: A...
2005 Oct 17
0
Error Executing sampledec in VC++
...going to read past the end
of your char array.
fread (&nbBytes, sizeof(int), 1, fo);
_____
From: speex-dev-bounces@xiph.org [mailto:speex-dev-bounces@xiph.org] On
Behalf Of Mo Win
Sent: Monday, October 17, 2005 7:31 PM
To: speex-dev@xiph.org
Subject: Re: [Speex-dev] Error Executing sampledec in VC++
Hi Steve, thanks for the advice. I placed the appropriate functions outside
the while statement but I still get this error at the while loop:
First-chance exception at 0x004010fa in SPXDEC.exe: 0xC0000005: Access
violation reading location 0x0000000c.
Unhandled exception at 0x004010fa...
2005 Jan 03
0
sampleenc/sampledec
I can't get the versions of sampleenc and sampledec in the manual to
work back-to-back. I've tried using speex 1.0.4 and 1.1.6. What am I
doing wrong?
[gerv@otter]$ file in.wav
in.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz
Strip headers:
[gerv@otter]$ sox in.wav in.raw
Command as given on manual page:
[...
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
Hi,
The manual 1.1.6 of sampledec.c says that
/*Destroy the decoder state*/
speex_encoder_destroy(state);
Should it be be
/*Destroy the decoder state*/
speex_decoder_destroy(state);
instead?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20...
2004 Sep 15
0
Problems with sampleenc and sampledec
I suspect I am missing something basic but I do not seem to be able to get the sampleenc and sampledec programs to work together. I suspect the decode operation is failing, but I cannot find out why.
Backgound information:
1) 1.0.4 tar package 'make' worked and installed on a mandrake 10.0 linux
2) speexenc and speexdec appear to work fine.
3) testenc and testenc_wb work fine, though I...
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
...#39;s already written in LyX and can be easily converted to pdf,
html or anything. However, the trouble shooting part could be on a wiki.
Do you volunteer?
Jean-Marc
> Claude
>
> On Mon, 2005-02-21 at 21:35 +0800, James Oh wrote:
> > Hi,
> >
> > The manual 1.1.6 of sampledec.c says that
> >
> > /*Destroy the decoder state*/
> > speex_encoder_destroy(state);
> >
> > Should it be be
> >
> > /*Destroy the decoder state*/
> > speex_decoder_destroy(state);
> >
> > instead?
> > ______________________...
2005 Aug 11
1
About sampleenc and sampledec in appendix B
...g=0 cellspacing=0 align=center>
        <tr>
        <td valign=top style='padding:8pt;'><font size=2>Hi! I excuted "sampleenc male.wav | sampledec male1.wav"(follow sample), but its result (male1.wav) is like durt. How to certify this file? winxp, VC++ 6.0 My step is as below: -I built libspeex.dll with libspeex_dynamic.dsp(speex-1.1.10) -I built sampleenc, but error(sampleenc.obj : error LNK2001: unresolved external symbol _speex_nb_mod...
2005 Aug 10
0
About sampleenc and sampledec in appendix B
...sp    <tr>
        <td valign=top style='padding:8pt;'><font size=2><P>Hi!</P>
<P> </P>
<P><BR>
I excuted "sampleenc male.wav | sampledec male1.wav"(follow sample), but its result (male1.wav) is like durt. How to certify this file?</P>
<P>winxp, VC++ 6.0</P>
<P> </P>
<P> </P>
<P>My step is as below:<BR>
-I built libspeex.dll with libspeex_dynamic.dsp(speex-1...
2004 Sep 13
0
Compile flags for sampleenc sampledec.
I suspect I am missing something basic but I do not seem to be able to get the sampleenc and sampledec programs to work together. I think I do not have a compile swtich of flag set correctly.
Backgound information:
1) 1.0.4 tar package 'make' worked and installed on a mandrake 10.0 linux
2) speexenc and speexdec appear to work fine.
3) testenc and testenc_wb work fine, though I notice...
2007 Oct 11
2
Encode and decode using speex
Hi,
I am new to speex and I am trying to use the sample program given in the
speex document.
I have made some modification to that sample, so that input can be read from
a file and the output can be re-directed to the file.
I tried to encode an audio file using the sampleenc and decode the same by
sampledec.c I am able to do it successfully, but when i try to play the
output file from the sampledec.c, i am able to hear only some noise.
Is it possible for me to encode a sample.wav file to encoded.spx using
sampleenc.c and decode it using sampledec.c and store the output in a
output.wav and play it usi...
2004 Aug 06
3
smapleenc.c and sampledec.c (from manual)
Hello,
I had tried to run smapleenc.c and sampledec.c
from the manual (don't confuse it with the encoder and decoter command line
utils ; the code ther is different).
the final decoded audio file is with a very poor quality audio
when using it with 16 bit PCM raw audio input .
Did anybody tried these samples with success ?
Or should I add somet...
2007 Jul 12
4
file couldn't play after Speex encode and decode
Dear sir,
I've a problem that the .wav file couldn't play after calling "sampleenc
male.wav|sampledec male_speex_15.wav".I found that the new file
male_speex_15.wav is smaller than the original file in size.I implemented
the test on Linux system.The original file male.wav is 96044 bytes,while the
new file male_speex_15.wav is 96000 bytes.I'm eager to know the reason.Thankyou!
sincerely,
W...
2006 Oct 04
1
Decode win32 encoded files on TI C5x???
> For encoding into and decoding from "raw Speex stream" (if you can call
> it that), I suggest you start with the sampleenc.c and sampledec.c
> example code in Appendix B of the Speex Manual.
There is no such a thing as a "raw Speex format". Also, sampleenc.c and
sampledec.c are good for learning how to use the API, but the compressed
format shouldn't be used in any real application.
Jean-Marc
> Peter Mlakar wro...
2008 Jul 19
2
Noise problem while encoding and decoding
Hi, everyone!
I'm a newbie of speex develog. I tried to encode and decode with the
sample program in the speex manual. I compile those program with
gcc sampleenc.c -o enc -lspeex
gcc sampledec.c -o dec -lspeex
I run these two program in this way and then speak loudly:
./enc /dev/dsp ? ./dec /dev/dsp
I thought I would hear my voice. However, what i heard was a lot of
noise. I can hardly recognize my voice.
Then I tried in another way.
cat /dev/dsp > from
./enc from ? ./dec to
c...
2005 Dec 06
1
problems decoding speex... please help
...ith minor
revisions. While running the program, encountered this warning:
"Packet is larger than allocated buffer : 38"
when calling speex_bits_read_from (&bits, cbits, nBytes)
then my program terminated unexpectedly with errors (Unhandled exception at
0x10225e1f ( msvcr80d.dll) in sampleDEC.exe: 0xC0000005: Access violation
reading location 0x645c3a63.)
I declared cbits as char *cbits [500]. nBytes is 38, bit rate is 15000 bps.
I'm decoding a 'speex' file created using a program much like sampleENC. Can
anyone tell me what is wrong and how I can correct the problem? Thank...
2004 Aug 06
1
HELP?
...ntel
Linux/Fedora Core 2
ALSA
Soundblaster 128 PCI
I am capturing U8 (unsigned 8 bit mono) audio from the sound blaster and
attempting to
compress it with speex. I have built and installed speex on the computer
and can compile
and link with no problems. I have the sample programs (sampleenc.c and
sampledec.c)
which I am following. The only difference is my raw data is in a char array
and not
written to a file.
Everytime I call speex_encode and speex_bits_write I get a return value of
38.
I found the max byte size bit stream of 2000 in the speex_bits.h but no
matter if
I pass it 200 or 2000 I alway...
2007 Jan 06
1
How to use speex?
Hi,
I am a newcomer to speex.
When I use the sampleenc/sampledec programme to have a try of speex, the
encoded and decoded file can not be played in foobar.
But if I use the speexenc.exe/speexdec.exe in the Windows binary tools, the
encoded file can be played well.
Did I misuse something and can anyone provide a simple example for how to use
speex to build...