Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/viam/components/audio_in/audio_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async def get_audio(
Get a stream of audio from the device

::

my_audio_in = AudioIn.from_robot(robot=machine, name="my_audio_in")

stream = await my_audio_in.get_audio(
Expand All @@ -63,6 +64,7 @@ async def get_properties(self, *, timeout: Optional[float] = None, **kwargs) ->
Get the audio device's properties

::

my_audio_in = AudioIn.from_robot(robot=machine, name="my_audio_in")
properties = await my_audio_in.get_properties()

Expand Down
2 changes: 2 additions & 0 deletions src/viam/components/audio_out/audio_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async def play(
Play the given audio data.

::

my_audio_out = AudioOut.from_robot(robot=machine, name="my_audio_out")

# With audio info
Expand All @@ -62,6 +63,7 @@ async def get_properties(self, *, extra: Optional[Dict[str, Any]] = None, timeou
Get the audio output device's properties.

::

my_audio_out = AudioOut.from_robot(robot=machine, name="my_audio_out")
properties = await my_audio_out.get_properties()

Expand Down
Loading