src
sound_play
sound_play_plugin.py
Go to the documentation of this file.
1
class
SoundPlayPlugin
(object):
2
3
"""Base class for sound_play plugin
4
5
This is a base class for sound_play plugin.
6
sound_play plugin has one method; sound_play_say_plugin.
7
sound_play_start_plugin run when command is SAY.
8
9
sound_play plugin is defined in yaml format as below;
10
- name: sound_play/festival_plugin # plugin name
11
module: sound_play.festival_plugin.FestivalPlugin
12
# plugin module name
13
14
Also, sound_play plugin yaml file is exported in package.xml as below;
15
<export>
16
<sound_play plugin="${prefix}/sound_play_plugin.yaml" />
17
</export>
18
"""
19
20
def
__init__
(self):
21
pass
22
23
def
sound_play_say_plugin
(self, text, voice):
24
"""Start plugin for sound_play
25
26
Args:
27
text (string): speech text
28
voice (string): speech voice
29
"""
30
return
None
sound_play.sound_play_plugin.SoundPlayPlugin.__init__
def __init__(self)
Definition:
sound_play_plugin.py:20
sound_play.sound_play_plugin.SoundPlayPlugin.sound_play_say_plugin
def sound_play_say_plugin(self, text, voice)
Definition:
sound_play_plugin.py:23
sound_play.sound_play_plugin.SoundPlayPlugin
Definition:
sound_play_plugin.py:1
sound_play
Author(s): Blaise Gassend
autogenerated on Fri Aug 16 2024 02:42:13