Audio in API | Component APIs

Audio in API

The audio in API supports the following methods:

Method Name Description
GetAudio Get a stream of audio from the device.
GetProperties Get the audio device’s properties.
GetGeometries Get all the geometries associated with the audio in component in its current configuration, in the frame of the audio in 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 in component.
Close Safely shut down the resource and prevent further use.

API

GetAudio

Get a stream of audio from the device.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


For more information, see the TypeScript SDK Docs.

Parameters:

Returns:

For more information, see the Flutter SDK Docs.

GetProperties

Get the audio device’s properties.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


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 in component in its current configuration, in the frame of the audio in 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:


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:


For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


For more information, see the TypeScript SDK Docs.

Parameters:

Returns:

Example:


For more information, see the Flutter SDK Docs.

GetResourceName

Get the ResourceName for this audio in component.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


For more information, see the TypeScript SDK Docs.

Close

Safely shut down the resource and prevent further use.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Parameters:

Returns: