sound_play.libsoundplay module
- class sound_play.libsoundplay.Sound(client, snd, arg, volume=1.0)
Bases:
object- play(**kwargs)
- repeat(**kwargs)
- stop()
- class sound_play.libsoundplay.SoundClient(node, blocking=False, sound_action='sound_play', sound_topic='robotsound')
Bases:
object- builtinSound(id, volume=1.0)
- play(sound, volume=1.0, **kwargs)
- playWave(sound, volume=1.0, **kwargs)
- playWaveFromPkg(package, sound, volume=1.0, **kwargs)
- repeat(text, volume=1.0, **kwargs)
- say(text, voice='', volume=1.0, **kwargs)
- sendMsg(snd, cmd, s, arg2='', vol=1.0, replace=True, **kwargs)
Internal method for sound request.
Internal method that publishes the sound request, either directly as a SoundRequest to the soundplay_node or through the actionlib interface (which blocks until the sound has finished playing).
The blocking behavior is nominally the class-wide setting unless it has been explicitly specified in the play call.
- start(sound, volume=1.0, **kwargs)
- startWave(sound, volume=1.0, **kwargs)
- startWaveFromPkg(package, sound, volume=1.0, **kwargs)
- stop(sound)
- stopAll()
- stopSaying(text)
- stopWave(sound)
- stopWaveFromPkg(sound, package)
- voiceSound(s, volume=1.0)
- waveSound(sound, volume=1.0)