Skip to content

Commit 8b844ad

Browse files
BruceVonKmsintov
authored andcommitted
fix incorrect docs (#170)
1 parent a3fea80 commit 8b844ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

anki_vector/audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class AudioComponent(util.Component):
6464
.. code-block:: python
6565
6666
with anki_vector.Robot() as robot:
67-
robot.audio.play_wav_file('sounds/vector_alert.wav')
67+
robot.audio.stream_wav_file('sounds/vector_alert.wav')
6868
"""
6969

7070
# TODO restore audio feed code when ready
@@ -163,7 +163,7 @@ async def stream_wav_file(self, filename, volume=50):
163163
.. code-block:: python
164164
165165
with anki_vector.Robot() as robot:
166-
robot.audio.play_wav_file('sounds/vector_alert.wav')
166+
robot.audio.stream_wav_file('sounds/vector_alert.wav')
167167
168168
:param filename: the filename/path to the .wav audio file
169169
:param volume: the audio playback level (0-100)

0 commit comments

Comments
 (0)