---
name: "c2demo"
section: "1"
platform: "linux"
package: "codec2"
version: "0.8.1-2"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/c2demo"
---

# c2demo(1)

codec2 testing framework

## NAME

c2demo - codec2 testing framework

## DESCRIPTION

Codec2 test and evaluation program

## USAGE

c2demo InputRawSpeechFile OutputRawSpeechFile

## OPTIONS

None

Encodes and decodes a file of raw speech samples using Codec 2. Demonstrates use of Codec 2 function API.

Note to convert a wave file to raw and vice-versa:

$ sox file.wav -r 8000 -s -2 file.raw

$ sox -r 8000 -s -2 file.raw file.wav

## SEE ALSO

[c2dec(1)](/c2dec/1.md) [c2enc(1)](/c2enc/1.md) [c2sim(1)](/c2sim/1.md) [fdmdv\_demod(1)](/fdmdv_demod/1.md) fdmdv\_interleave(1) [fdmdv\_mod(1)](/fdmdv_mod/1.md) [fdmdv\_put\_test\_bits(1)](/fdmdv_put_test_bits/1.md) fec\_dec(1) fec\_enc(1) [insert\_errors(1)](/insert_errors/1.md)
