Good question. There is a utility, but it is not yet user-friendly. It was on my list of things to "spit and polish" before releasing.
However, I've added it to the source code: http://code.google.com/p/codec2demo/source/browse/ There is a txgen.c in the c2poc directory and must be linked to the c2lib.a and libnewqpsk.a static libraries (just like c2poc/lc2poc). It reads and writes raw signed 16-bit audio. The input is an 8kHz speech file; the output is a 48kHz modem file. Example usage of sox to convert to and from .wav files should be: sox myspeech.wav -r 8000 -s -2 -c 1 speech.raw sox -r 48000 -s -2 -c 1 modem.raw mymodem.wav Also note that you'll want to manually uncomment one of the " const char *params " of your choice in txgen.c The tune_len and sync_len can be zero to minimize the length of the file, or can be up to 64 symbols in length. The tune preamble helps with frequency corrections and the sync preamble aids in synchronization. On Fri, Feb 17, 2012 at 1:33 PM, Andreas Weller <[email protected]> wrote: > On Fri, Feb 17, 2012 at 7:06 PM, Peter Lawrence <[email protected]> wrote: > >> The .wav files to use at the transmitter were also updated to 48kHz. > > Is there a way to create own WAVs (i.e. an encoder...)? > > > Regards, > Andreas, DF1PAW > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Freetel-codec2 mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
