Go to the documentation of this file.
56 sc.
say(
"Hello world!");
58 quiet_sc.
say(
"Hello world!");
61 const char *str1 =
"I am annoying.";
69 sc.
playWave(
"/usr/share/xemacs21/xemacs-packages/etc/sounds/boing.wav");
71 quiet_sc.
playWave(
"/usr/share/xemacs21/xemacs-packages/etc/sounds/boing.wav");
74 const char *str2 =
"/usr/share/xemacs21/xemacs-packages/etc/sounds/piano-beep.wav";
82 sc.
play(sound_play::SoundRequest::NEEDS_UNPLUGGING);
84 quiet_sc.
play(sound_play::SoundRequest::NEEDS_UNPLUGGING);
87 sc.
play(sound_play::SoundRequest::NEEDS_UNPLUGGING);
89 quiet_sc.
play(sound_play::SoundRequest::NEEDS_UNPLUGGING);
92 sc.
start(sound_play::SoundRequest::BACKINGUP);
94 sc.
stop(sound_play::SoundRequest::BACKINGUP);
95 quiet_sc.
start(sound_play::SoundRequest::BACKINGUP);
97 quiet_sc.
stop(sound_play::SoundRequest::BACKINGUP);
void playWave(const std::string &s, float volume=1.0f)
Plays a WAV or OGG file.
void stop()
Stop Sound playback.
Sound waveSoundFromPkg(const std::string &p, const std::string &s, float volume=1.0f)
Create a wave Sound from a package.
void startWave(const std::string &s, float volume=1.0f)
Plays a WAV or OGG file repeatedly.
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
void sleepok(int t, ros::NodeHandle &nh)
Class that publishes messages to the sound_play node.
void repeat(const std::string &s, float volume=1.0f)
Say a string repeatedly.
void stop(int sound)
Stop playing a built-in sound.
void play()
Play the Sound.
void stopSaying(const std::string &s)
Stop saying a string.
Sound voiceSound(const std::string &s, float volume=1.0f)
Create a voice Sound.
void play(int sound, float volume=1.0f)
Play a buildin sound.
int main(int argc, char **argv)
Sound builtinSound(int id, float volume=1.0f)
Create a builtin Sound.
void stopWave(const std::string &s)
Stop playing a WAV or OGG file.
Sound waveSound(const std::string &s, float volume=1.0f)
Create a wave Sound.
void say(const std::string &s, const std::string &voice="voice_kal_diphone", float volume=1.0f)
Say a string.
void start(int sound, float volume=1.0f)
Play a buildin sound repeatedly.
sound_play
Author(s): Blaise Gassend
autogenerated on Fri Aug 16 2024 02:42:13