Skip to content

Commit

Permalink
DOC: re-enable syntax highlighting for included example code
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Aug 11, 2024
1 parent 990af53 commit a48b402
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,73 +6,84 @@ Play a Sound File
:gh-example:`play_file.py`

.. literalinclude:: ../examples/play_file.py
:language: python

Play a Very Long Sound File
---------------------------

:gh-example:`play_long_file.py`

.. literalinclude:: ../examples/play_long_file.py
:language: python

Play a Very Long Sound File without Using NumPy
-----------------------------------------------

:gh-example:`play_long_file_raw.py`

.. literalinclude:: ../examples/play_long_file_raw.py
:language: python

Play a Web Stream
-----------------

:gh-example:`play_stream.py`

.. literalinclude:: ../examples/play_stream.py
:language: python

Play a Sine Signal
------------------

:gh-example:`play_sine.py`

.. literalinclude:: ../examples/play_sine.py
:language: python

Input to Output Pass-Through
----------------------------

:gh-example:`wire.py`

.. literalinclude:: ../examples/wire.py
:language: python

Plot Microphone Signal(s) in Real-Time
--------------------------------------

:gh-example:`plot_input.py`

.. literalinclude:: ../examples/plot_input.py
:language: python

Real-Time Text-Mode Spectrogram
-------------------------------

:gh-example:`spectrogram.py`

.. literalinclude:: ../examples/spectrogram.py
:language: python

Recording with Arbitrary Duration
---------------------------------

:gh-example:`rec_unlimited.py`

.. literalinclude:: ../examples/rec_unlimited.py
:language: python

Using a stream in an `asyncio` coroutine
----------------------------------------

:gh-example:`asyncio_coroutines.py`

.. literalinclude:: ../examples/asyncio_coroutines.py
:language: python

Creating an `asyncio` generator for audio blocks
------------------------------------------------

:gh-example:`asyncio_generators.py`

.. literalinclude:: ../examples/asyncio_generators.py
:language: python

0 comments on commit a48b402

Please sign in to comment.