@@ -12,7 +12,7 @@ a speaker to pin 0 and GND on the edge connector to hear the sounds.
1212The ``audio `` module can be imported as ``import audio `` or accessed via
1313the ``microbit `` module as ``microbit.audio ``.
1414
15- There are three different kinds of audio sources that can be played using the
15+ There are five different kinds of audio sources that can be played using the
1616:py:meth: `audio.play ` function:
1717
18181. `Built in sounds <#built-in-sounds-v2 >`_ (**V2 **),
@@ -268,7 +268,7 @@ AudioRecording
268268--------------
269269
270270.. py :class ::
271- AudioRecording(duration, rate=11_000 )
271+ AudioRecording(duration, rate=7812 )
272272
273273 The ``AudioRecording `` object contains audio data and the sampling rate
274274 associated to it.
@@ -305,6 +305,10 @@ AudioRecording
305305 Create an `AudioTrack <#audio.AudioTrack >`_ instance from a portion of
306306 the data in this ``AudioRecording `` instance.
307307
308+ Out-of-range values will be truncated to the recording limits.
309+ If ``end_ms `` is lower than ``start_ms ``, an empty track will be
310+ created.
311+
308312 :param start_ms: Where to start of the track in milliseconds.
309313 :param end_ms: The end of the track in milliseconds.
310314 If the default value of ``-1 `` is provided it will end the track
@@ -335,7 +339,7 @@ AudioTrack
335339
336340 When the input buffer has an associated rate (e.g. an ``AudioRecording ``
337341 or ``AudioTrack ``), the rate is copied. If the buffer object does not have
338- a rate, the default value of 11_000 is used.
342+ a rate, the default value of 7812 is used.
339343
340344 Changes to an ``AudioTrack `` rate won't affect the original source rate,
341345 so multiple instances pointing to the same buffer can have different
0 commit comments