File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,9 +55,13 @@ For example::
5555You can also play WAV files using the Python ``wave `` module. You can get
5656the wave module `here <http://micropython.org/resources/examples/wave.py >`_ and you will also need
5757the chunk module available `here <http://micropython.org/resources/examples/chunk.py >`_. Put these
58- on your pyboard (either on the flash or the SD card in the top-level
59- directory). You will need an 8-bit WAV file to play, such as
60- `this one <http://micropython.org/resources/examples/test.wav >`_. Then you can do::
58+ on your pyboard (either on the flash or the SD card in the top-level directory). You will need an
59+ 8-bit WAV file to play, such as `this one <http://micropython.org/resources/examples/test.wav >`_,
60+ or to convert any file you have with the command::
61+
62+ avconv -i original.wav -ar 22050 -codec pcm_u8 test.wav
63+
64+ Then you can do::
6165
6266 >>> import wave
6367 >>> from pyb import DAC
You can’t perform that action at this time.
0 commit comments