2
0

README 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Codec 2 README
  2. --------------
  3. Codec 2 is an open source (LGPL licensed) speech codec for 2400 bit/s
  4. and below. For more information please see:
  5. http://rowetel.com/codec2.html
  6. Also included is a FDMDV modem, see README_fdmdv.txt
  7. Quickstart
  8. ----------
  9. 1/ Listen to Codec 2:
  10. $ ./configure && make
  11. $ cd src
  12. $ ./c2demo ../raw/hts1a.raw hts1a_c2.raw
  13. $ ../script/menu.sh ../raw/hts1a.raw hts1a_c2.raw
  14. NOTE: For playback testing, menu.sh requires either the 'play',
  15. 'aplay' or 'ossplay' programs to be installed (see
  16. http://sox.sourceforge.net/, http://www.alsa-project.org/, or
  17. http://www.opensound.com/ respectively).
  18. 2/ Compress and Decompress a file:
  19. $ ./c2enc 2400 ../raw/hts1a.raw hts1a_c2.bit
  20. $ ./c2dec 2400 hts1a_c2.bit hts1a_c2.raw
  21. 3/ Same thing with pipes:
  22. $ ./c2enc 1400 ../raw/hts1a.raw - | ./c2dec 1400 - - | play -t raw -r 8000 -s -2 -
  23. Programs
  24. --------
  25. 1/ c2demo encodes a file of speech samples, then decodes them and
  26. saves the result.
  27. 2/ c2enc encodes a file of speech samples to a compressed file of
  28. encoded bits.
  29. 3/ c2dec decodes a compressed file of bits to a file of speech
  30. samples.
  31. 4/ c2sim is a simulation/development version of Codec 2. It allows
  32. selective use of the various Codec 2 algorithms. For example
  33. switching phase modelling or LSP quantisation on and off.
  34. Debugging
  35. ---------
  36. 1/ For dump file support:
  37. $ cd codec2
  38. $ CFLAGS=-DDUMP ./configure
  39. $ make clean && make
  40. 2/ To use gdb:
  41. $ libtool --mode=execute gdb c2sim
  42. Directories
  43. -----------
  44. fltk - FLTK GUI programs(s)
  45. octave - Octave scripts used for visualising internal signals
  46. during development
  47. portaudio - Portaudio test programs
  48. script - shell scripts for playing and converting raw files
  49. src - C source code
  50. raw - speech files in raw format (16 bits signed linear 8 kHz)
  51. unittest - unit test source code
  52. voicing - hand-estimated voicing files, used for development
  53. wav - speech files in wave file format
  54. win32 - Support for building Windows DLL version of Codec 2 and FDMDV libraries
  55. TODO
  56. ----
  57. [ ] Get win32/Makefile integrated into Automake system, such that if
  58. i586-mingw32msvc exists the Win32 code gets automatically built.
  59. [ ] Same for fltk & portaudio, build these conditionally if libs exist