/*************************************************************************************/
/*                                                                                   */
/* AMSAT EA 2026                                                                     */
/* https://www.amsat-ea.org/projects/                                               */
/*                                                                                   */
/*************************************************************************************/

Copy the codec2 (.bin) files generated by Soundmodem into the same directory where run_codec2.bat is located.
They should have a format like: sat_03_type_11_codec2_frame_xxx.bin
Each file represents a fragment of the CODEC2 voice message.

To merge them into a single C2 (CODEC2) file and later convert it to WAV:

- Run: run_codec2.bat
  
- The script will do the following:
  1. Find all .bin files corresponding to codec2
  2. Create a file named codec2_file_list.txt with the list of fragments
  3. Use codec2-merge-windows-x86 to merge them into a single C2 file:
     hades_sa.c2
  4. Use the C2DEC utility (compiled for Windows from https://github.com/drowe67/codec2)
     to convert the C2 file into hades_sa.raw
  5. Use the ffmpeg utility to convert hades_sa.raw into hades_sa.wav

If you need help, you can write to: satcontrol@amsat-ea.org

We would love to receive your voice files! You can send them to:
satcontrol@amsat-ea.org
or share them on X mentioning @AmsatSpain so we can thank you.

The AMSAT EA team


