{"id":17327070,"url":"https://github.com/vmarkovtsev/codec2","last_synced_at":"2025-09-11T06:35:03.872Z","repository":{"id":5486031,"uuid":"6683800","full_name":"vmarkovtsev/codec2","owner":"vmarkovtsev","description":"codec2 speech codec with some performance optimizations","archived":false,"fork":false,"pushed_at":"2012-11-19T10:42:49.000Z","size":4246,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T15:52:01.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmarkovtsev.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-14T06:44:45.000Z","updated_at":"2024-07-21T07:04:40.000Z","dependencies_parsed_at":"2022-07-06T21:52:43.145Z","dependency_job_id":null,"html_url":"https://github.com/vmarkovtsev/codec2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vmarkovtsev/codec2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarkovtsev%2Fcodec2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarkovtsev%2Fcodec2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarkovtsev%2Fcodec2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarkovtsev%2Fcodec2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmarkovtsev","download_url":"https://codeload.github.com/vmarkovtsev/codec2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarkovtsev%2Fcodec2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274589627,"owners_count":25312971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T14:18:33.895Z","updated_at":"2025-09-11T06:35:03.853Z","avatar_url":"https://github.com/vmarkovtsev.png","language":"C","readme":"Codec 2 README\n--------------\n\nCodec 2 is an open source (LGPL licensed) speech codec for 2400 bit/s\nand below.  For more information please see:\n\n    http://rowetel.com/codec2.html\n\nAlso included is a FDMDV modem, see README_fdmdv.txt\n\nQuickstart\n----------\n\n1/ Listen to Codec 2:\n\n   $ ./configure \u0026\u0026 make\n   $ cd src\n   $ ./c2demo ../raw/hts1a.raw hts1a_c2.raw\n   $ ../script/menu.sh ../raw/hts1a.raw hts1a_c2.raw\n\n   NOTE: For playback testing, menu.sh requires either the 'play',\n   'aplay' or 'ossplay' programs to be installed (see\n   http://sox.sourceforge.net/, http://www.alsa-project.org/, or\n   http://www.opensound.com/ respectively).\n\n2/ Compress and Decompress a file:\n\n   $ ./c2enc 2400 ../raw/hts1a.raw hts1a_c2.bit\n   $ ./c2dec 2400 hts1a_c2.bit hts1a_c2.raw \n\n3/ Same thing with pipes:\n\n   $ ./c2enc 1400 ../raw/hts1a.raw - | ./c2dec 1400 - - | play -t raw -r 8000 -s -2 -\n\nPrograms\n--------\n \n1/ c2demo encodes a file of speech samples, then decodes them and\nsaves the result.\n\n2/ c2enc encodes a file of speech samples to a compressed file of\nencoded bits.\n\n3/ c2dec decodes a compressed file of bits to a file of speech\nsamples.\n\n4/ c2sim is a simulation/development version of Codec 2.  It allows\nselective use of the various Codec 2 algorithms.  For example\nswitching phase modelling or LSP quantisation on and off.\n\nDebugging\n---------\n\n1/ For dump file support:\n\n  $ cd codec2\n  $ CFLAGS=-DDUMP ./configure\n  $ make clean \u0026\u0026 make\n\n2/ To use gdb:\n\n  $ libtool --mode=execute gdb c2sim\n\nDirectories\n-----------\n\n  fltk      - FLTK GUI programs(s)\n  octave    - Octave scripts used for visualising internal signals \n              during development\n  portaudio - Portaudio test programs\n  script    - shell scripts for playing and converting raw files\n  src       - C source code\n  raw       - speech files in raw format (16 bits signed linear 8 kHz)\n  unittest  - unit test source code\n  voicing   - hand-estimated voicing files, used for development\n  wav       - speech files in wave file format\n  win32     - Support for building Windows DLL version of Codec 2 and FDMDV libraries\n\nTODO\n----\n\n[ ] Get win32/Makefile integrated into Automake system, such that if\n    i586-mingw32msvc exists the Win32 code gets automatically built.\n[ ] Same for fltk \u0026 portaudio, build these conditionally if libs exist","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmarkovtsev%2Fcodec2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmarkovtsev%2Fcodec2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmarkovtsev%2Fcodec2/lists"}