Permalink
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (23 sloc) 817 Bytes

🔊 Sounds

If you plug in a USB audio device into your Tingbot, you can play sounds.

.. py:class:: Sound(filename)

    Loads a sound ready for playing. Currently WAV and OGG files are supported.

    .. py:method:: play(loop=False)

        Starts the playback of the sound.

        :param bool loop: Pass ``True`` to loop the sound until ``stop()`` is called.

    .. py:method:: stop()

        Stops the sound.