@@ -6,73 +6,84 @@ Play a Sound File
6
6
:gh-example: `play_file.py `
7
7
8
8
.. literalinclude :: ../examples/play_file.py
9
+ :language: python
9
10
10
11
Play a Very Long Sound File
11
12
---------------------------
12
13
13
14
:gh-example: `play_long_file.py `
14
15
15
16
.. literalinclude :: ../examples/play_long_file.py
17
+ :language: python
16
18
17
19
Play a Very Long Sound File without Using NumPy
18
20
-----------------------------------------------
19
21
20
22
:gh-example: `play_long_file_raw.py `
21
23
22
24
.. literalinclude :: ../examples/play_long_file_raw.py
25
+ :language: python
23
26
24
27
Play a Web Stream
25
28
-----------------
26
29
27
30
:gh-example: `play_stream.py `
28
31
29
32
.. literalinclude :: ../examples/play_stream.py
33
+ :language: python
30
34
31
35
Play a Sine Signal
32
36
------------------
33
37
34
38
:gh-example: `play_sine.py `
35
39
36
40
.. literalinclude :: ../examples/play_sine.py
41
+ :language: python
37
42
38
43
Input to Output Pass-Through
39
44
----------------------------
40
45
41
46
:gh-example: `wire.py `
42
47
43
48
.. literalinclude :: ../examples/wire.py
49
+ :language: python
44
50
45
51
Plot Microphone Signal(s) in Real-Time
46
52
--------------------------------------
47
53
48
54
:gh-example: `plot_input.py `
49
55
50
56
.. literalinclude :: ../examples/plot_input.py
57
+ :language: python
51
58
52
59
Real-Time Text-Mode Spectrogram
53
60
-------------------------------
54
61
55
62
:gh-example: `spectrogram.py `
56
63
57
64
.. literalinclude :: ../examples/spectrogram.py
65
+ :language: python
58
66
59
67
Recording with Arbitrary Duration
60
68
---------------------------------
61
69
62
70
:gh-example: `rec_unlimited.py `
63
71
64
72
.. literalinclude :: ../examples/rec_unlimited.py
73
+ :language: python
65
74
66
75
Using a stream in an `asyncio ` coroutine
67
76
----------------------------------------
68
77
69
78
:gh-example: `asyncio_coroutines.py `
70
79
71
80
.. literalinclude :: ../examples/asyncio_coroutines.py
81
+ :language: python
72
82
73
83
Creating an `asyncio ` generator for audio blocks
74
84
------------------------------------------------
75
85
76
86
:gh-example: `asyncio_generators.py `
77
87
78
88
.. literalinclude :: ../examples/asyncio_generators.py
89
+ :language: python
0 commit comments