Audio out API | Component APIs

Audio out API

The audio out API supports the following methods:

Method Name Description
Play Play the given audio data.
PlayStream Stream audio data in chunks for playback.
GetProperties Get the audio device’s properties.
GetGeometries Get all the geometries associated with the audio out component in its current configuration, in the frame of the audio out component.
Reconfigure Reconfigure this resource.
DoCommand Execute model-specific commands that are not otherwise defined by the component API.
GetResourceName Get the ResourceName for this audio out component.
Close Safely shut down the resource and prevent further use.

API

Play

Play the given audio data.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

Parameters:

Returns:

For more information, see the Flutter SDK Docs.

PlayStream

Stream audio data in chunks for playback.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Flutter SDK Docs.

GetProperties

Get the audio device’s properties.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

Parameters:

Returns:

For more information, see the Flutter SDK Docs.

GetGeometries

Get all the geometries associated with the audio out component in its current configuration, in the frame of the audio out component. The motion and navigation services use the relative position of inherent geometries to configured geometries representing obstacles for collision detection and obstacle avoidance while motion planning.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Reconfigure

Reconfigure this resource. Reconfigure must reconfigure the resource atomically and in place.

Parameters:

Returns:

For more information, see the Go SDK Docs.

DoCommand

Execute model-specific commands that are not otherwise defined by the component API. Most models do not implement DoCommand. Any available model-specific commands should be covered in the model’s documentation. If you are implementing your own arm and want to add features that have no corresponding built-in API method, you can implement them with DoCommand.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Flutter SDK Docs.

GetResourceName

Get the ResourceName for this audio out component.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

Close

Safely shut down the resource and prevent further use.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.