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'¶
-
play_sound
(sound, gain=None, **kwargs)[source]¶ Play already uploaded sound with optional volume gain multiplier
-
load_sound
(sound, data, max_chunk_size=1048576, **kwargs)[source]¶ Uploads the WAV data tagged with the specified Sound
-
set_audio_capture_channel
(channel, **kwargs)[source]¶ Set the audio capture channel
- Parameters
channel (audio_pb2.AudioCaptureChannel) – Microphone to use
-
set_audio_capture_channel_async
(channel, **kwargs)[source]¶ Async version of set_audio_capture_channel()
-
set_audio_capture_gain
(channel, gain, **kwargs)[source]¶ Set the audio capture gain
- Parameters
channel (audio_pb2.AudioCaptureChannel) – Microphone to set gain for
gain (Double) – Microphone gain, 0.0 to 1.0
-
set_audio_capture_gain_async
(channel, gain, **kwargs)[source]¶ Async version of set_audio_capture_gain()
-