But when I read the source code, we have this line inFile = argv[1]; fin = fopen(inFile, "r"); I assume samepleenc read a file and output something, right? Quoting alex@gorex.com.hk:> HI, > So I am wrong to input the file. The output is a compressed speex format, > isn't it? > Alex > > > Quoting Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>: > > > > I have compiled the sample sampleenc.c w/o any errors. then I tried to > > > compress a sound file which is in WAV and RAW format but the file size is > > from > > > 200K to 80byte. I think there is somehing wrong but no idea why will be > > like > > > that. any idea? > > > > > > I used > > > 1. sampleenc test.wav > test.spx > > > 2. sampleenc test.raw > test.spx > > > > No wonder it's not very big, sampleenc reads from stdin. BTW, the output > > of sampleenc is not what most people consider a "Speex file", as it's > > not compatible with anything else. > > > > Jean-Marc > > > > > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >
Oops, sorry I got confused. sampleenc indeed reads a file and outputs to stdout. alex@gorex.com.hk a ?crit :> But when I read the source code, we have this line > > inFile = argv[1]; > fin = fopen(inFile, "r"); > > I assume samepleenc read a file and output something, right? > > Quoting alex@gorex.com.hk: > >> HI, >> So I am wrong to input the file. The output is a compressed speex format, >> isn't it? >> Alex >> >> >> Quoting Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>: >> >>>> I have compiled the sample sampleenc.c w/o any errors. then I tried to >>>> compress a sound file which is in WAV and RAW format but the file size is >>> from >>>> 200K to 80byte. I think there is somehing wrong but no idea why will be >>> like >>>> that. any idea? >>>> >>>> I used >>>> 1. sampleenc test.wav > test.spx >>>> 2. sampleenc test.raw > test.spx >>> No wonder it's not very big, sampleenc reads from stdin. BTW, the output >>> of sampleenc is not what most people consider a "Speex file", as it's >>> not compatible with anything else. >>> >>> Jean-Marc >>> >> >> >> _______________________________________________ >> Speex-dev mailing list >> Speex-dev@xiph.org >> http://lists.xiph.org/mailman/listinfo/speex-dev >> > > > > >
Yes so my syntax should be corrected right? 1. sampleenc test.wav > test.spx 2. sampleenc test.raw > test.spx but how come the output size is that small? do i need to specify any parameter inside the code? e..g FRAME_SIZE .etc. alex Quoting Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>:> Oops, sorry I got confused. sampleenc indeed reads a file and outputs to > stdout. > > alex@gorex.com.hk a ?crit : > > But when I read the source code, we have this line > > > > inFile = argv[1]; > > fin = fopen(inFile, "r"); > > > > I assume samepleenc read a file and output something, right? > > > > Quoting alex@gorex.com.hk: > > > >> HI, > >> So I am wrong to input the file. The output is a compressed speex > format, > >> isn't it? > >> Alex > >> > >> > >> Quoting Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>: > >> > >>>> I have compiled the sample sampleenc.c w/o any errors. then I tried > to > >>>> compress a sound file which is in WAV and RAW format but the file size > is > >>> from > >>>> 200K to 80byte. I think there is somehing wrong but no idea why will be > >>> like > >>>> that. any idea? > >>>> > >>>> I used > >>>> 1. sampleenc test.wav > test.spx > >>>> 2. sampleenc test.raw > test.spx > >>> No wonder it's not very big, sampleenc reads from stdin. BTW, the output > >>> of sampleenc is not what most people consider a "Speex file", as it's > >>> not compatible with anything else. > >>> > >>> Jean-Marc > >>> > >> > >> > >> _______________________________________________ > >> Speex-dev mailing list > >> Speex-dev@xiph.org > >> http://lists.xiph.org/mailman/listinfo/speex-dev > >> > > > > > > > > > > >