Skip to content

Commit ce5b5ca

Browse files
deshipudpgeorge
authored andcommitted
Add a command for converting the WAV files
Add a command for converting the WAV files to the amp skin tutorial, so that people can use their own files easily.
1 parent 84e0cf0 commit ce5b5ca

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

docs/tutorial/amp_skin.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ For example::
5555
You can also play WAV files using the Python ``wave`` module. You can get
5656
the wave module `here <http://micropython.org/resources/examples/wave.py>`_ and you will also need
5757
the 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

0 commit comments

Comments
 (0)