Sakis Kasampalis
/
talking
Play a wav clip in the headphones (or a speaker)
Revision 1:91104d67b0af, committed 2017-02-11
- Comitter:
- faif
- Date:
- Sat Feb 11 14:19:31 2017 +0000
- Parent:
- 0:17458f91a0e9
- Commit message:
- Use a better audio clip and adjust the length
Changed in this revision
talking.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/talking.cpp Sun Feb 05 09:52:10 2017 +0000 +++ b/talking.cpp Sat Feb 11 14:19:31 2017 +0000 @@ -21,7 +21,7 @@ enum { MaxWavValue = 255 }; static const float ticker_rhythm = 13E-5; // 8 kHz sample rate (1/8000 sec delay) -static const char clip_path[] = "/local/blonde.wav"; +static const char clip_path[] = "/local/blonde8k.wav"; bool done = false; @@ -34,7 +34,7 @@ int main () { - const int size = 30000; // 32K max in total (~30K is enough for testing) + const int size = 27033; // 32K max in total (~30K is enough for testing) char clip[size]; waitForButton(led, button);