2020-12-11 13:50:38 +01:00
|
|
|
# About
|
|
|
|
|
|
|
|
This is a manual test, and demo application for DAC DDS.
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
This application will initialize the single default DAC DDS channel, and play
|
|
|
|
sine, square, sawtooth waves or a greeting audio on it as requested on the command line.
|
|
|
|
|
|
|
|
Typical usage:
|
|
|
|
|
|
|
|
> hello
|
|
|
|
> sine 440 2
|
|
|
|
|
|
|
|
# Audio source and license
|
|
|
|
|
2020-12-13 01:59:20 +01:00
|
|
|
hello.raw is an audio rendition of GeoTrinity saying "Ahoy!". It was obtained
|
|
|
|
from <https://en.wikipedia.org/wiki/File:GT_Ahoi_Deutsch_GT.ogg>
|
|
|
|
where it is annotated to be licensed under CC-BY-SA 3.0 international.
|
2020-12-11 13:50:38 +01:00
|
|
|
|
|
|
|
It was converted and trimmed using:
|
|
|
|
|
2020-12-13 01:59:20 +01:00
|
|
|
$ ffmpeg -i GT_Ahoi_Deutsch_GT.ogg -ac 1 -ar 8000 -f u8 -c:a pcm_u8 hello.raw
|
2020-12-11 13:50:38 +01:00
|
|
|
$ python3 -c "s = open('hello.raw', 'rb').read(); s = s.strip(b'\x80') + b'\x80'; open('hello.raw', 'wb').write(s)"
|