Audio

For clients to the Spot CAM Audio service.

class bosdyn.client.spot_cam.audio.AudioClient[source]

Bases: bosdyn.client.common.BaseClient

A client calling Spot CAM Audio service.

default_service_name = 'spot-cam-audio'
service_type = 'bosdyn.api.spot_cam.AudioService'
list_sounds(**kwargs)[source]

Retrieve the list of available sounds

list_sounds_async(**kwargs)[source]

Async version of list_sounds()

set_volume(percentage, **kwargs)[source]

Set the current volume as a percentage

set_volume_async(percentage, **kwargs)[source]

Async version of set_volume()

get_volume(**kwargs)[source]

Retrieve the current volume as a percentage

get_volume_async(**kwargs)[source]

Async version of get_volume()

play_sound(sound, gain=None, **kwargs)[source]

Play already uploaded sound with optional volume gain multiplier

play_sound_async(sound, gain=1.0, **kwargs)[source]

Async version of play_sound()

delete_sound(sound, **kwargs)[source]

Delete sound found in list_sounds()

delete_sound_async(sound, **kwargs)[source]

Async version of delete_sound()

load_sound(sound, data, max_chunk_size=1048576, **kwargs)[source]

Uploads the WAV data tagged with the specified Sound