
Write example C program using Opus codec
- or -
Post a project like this1855
$150
- Posted:
- Proposals: 1
- Remote
- #2736421
- Awarded
Description
Experience Level: Entry
Write example code for Linux using gcc compiler to encode and decode a sine wave. The result of this project will be used as a test driver for encoding/decoding various voice files. Parts of this example will be used in an embedded system transporting audio packets across a network.
Audio codec is the Open Source Opus codec. Documentation here: http://opus-codec.org
Project includes a single makefile which builds a single main.c and the Opus sources. Language is C.
main.c contains a global variable representing with the following source samples:
* 1kHz sine wave, sample at 16kHz at 16-bit depth
* 2kHz sine wave, sample at 16kHz at 16-bit depth
* 1kHz sine wave, sample at 48kHz at 16-bit depth
* 2kHz sine wave, sample at 48kHz at 16-bit depth
main() will perform the following:
(1) Opus encoder and decoder initialization
(2) Encode 5ms of a PCM sample (conditional compilation of one of the above samples)
(3) Decode encoded buffer; printf() decoded buffer
(4) Loop steps (2) and (3) until all 100ms of the buffer is processed
Verification of the results includes importing the data into Excel and plotting the reconstructed sine wave.
main.c contains summary of encoding parameters for tuning various parameters for high and low quality bitstreams.
Audio codec is the Open Source Opus codec. Documentation here: http://opus-codec.org
Project includes a single makefile which builds a single main.c and the Opus sources. Language is C.
main.c contains a global variable representing with the following source samples:
* 1kHz sine wave, sample at 16kHz at 16-bit depth
* 2kHz sine wave, sample at 16kHz at 16-bit depth
* 1kHz sine wave, sample at 48kHz at 16-bit depth
* 2kHz sine wave, sample at 48kHz at 16-bit depth
main() will perform the following:
(1) Opus encoder and decoder initialization
(2) Encode 5ms of a PCM sample (conditional compilation of one of the above samples)
(3) Decode encoded buffer; printf() decoded buffer
(4) Loop steps (2) and (3) until all 100ms of the buffer is processed
Verification of the results includes importing the data into Excel and plotting the reconstructed sine wave.
main.c contains summary of encoding parameters for tuning various parameters for high and low quality bitstreams.

John Y.
100% (9)Projects Completed
8
Freelancers worked with
4
Projects awarded
80%
Last project
22 Jul 2021
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies