Skip to content

Commit 91eb337

Browse files
Docs for audio.play
1 parent 69aaab7 commit 91eb337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lang/en/typeshed/stdlib/microbit/audio.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ def play(
1010
pin: MicroBitDigitalPin = pin0,
1111
return_pin: Union[MicroBitDigitalPin, None] = None,
1212
) -> None:
13-
"""Play a built-in sound, sound effect or audio samples using ``AudioFrame``.
13+
"""Play a built-in sound, sound effect or audio samples.
1414
1515
Example: ``audio.play(Sound.GIGGLE)``
1616
17-
:param source: A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an ``AudioFrame`` object or an iterable of ``AudioFrame`` objects.
17+
:param source: A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an ``AudioFrame``, ``AudioRecording`` or ``AudioTrack`` object or an iterable of ``AudioFrame`` objects.
1818
:param wait: If ``wait`` is ``True``, this function will block until the sound is complete.
1919
:param pin: An optional argument to specify the output pin can be used to override the default of ``pin0``. If we do not want any sound to play we can use ``pin=None``.
2020
:param return_pin: Specifies a differential edge connector pin to connect to an external speaker instead of ground. This is ignored for the **V2** revision.

0 commit comments

Comments
 (0)