Hi Steve,

I hear what you are saying but the code:

/* OK main loop */

   while(fread(speech_in, sizeof(short), n_speech_samples, fin) ==              
                <- reading the input, ints or chars, shouldn't matter in a 
Little Endian system.
n_speech_samples) {
       if (use_codectx == 0) {
           /* Use the freedv_api to do everything: speech encoding, modulating 
*/ 
           freedv_tx(freedv, mod_out, speech_in);
       } else {
           int bits_per_codec_frame = codec2_bits_per_frame(c2);
           int bytes_per_codec_frame = (bits_per_codec_frame + 7) / 8;
           int codec_frames = freedv_get_n_codec_bits(freedv) /
bits_per_codec_frame;
           int samples_per_frame = codec2_samples_per_frame(c2);
           unsigned char encoded[bytes_per_codec_frame * codec_frames];
           unsigned char *enc_frame = encoded;
           short *speech_frame = speech_in;
           float energy = 0;

----------

Sort of indicates our input is going to be Codec2.

Looks like I've more work to do....

Alan VK2ZIW

On Mon, 19 Aug 2019 08:35:22 -0500, Steve wrote
> On Mon, Aug 19, 2019 at 4:19 AM Al Beard 
> <[email protected]> wrote:
> >
> > ./src/freedv_tx 700D blank.c2 blank8.raw --codectx    <- output is zero
bytes, not good!!
> >
> > Not good. What have I done wrong?
> 
> I  don't think freedv_tx is designed to work with .c2 files.
> 
> This works:
> 
> ./freedv_tx 700D ../../raw/ve9qrp_10s.raw - --codectx | ./freedv_rx
> 700D - - | aplay -f S16
> 
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2

---------------------------------------------------
Alan Beard

OpenWebMail 2.53
 
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to