Debian Codegraph @

plyer/facades/tts.py

raw symbols SCIP
1 '''
2 TTS
3 ====
4
5 The :class:`TTS` provides provides access to public methods to
6 use text to speech of your device.
7
8 Simple Examples
9 ---------------
10
11 To speak::
12
13 >>> from plyer import tts
14 >>> tts.speak(message=message)
15
16 Supported Platforms
17 -------------------
18 Android, iOS, Windows, OS X, Linux
19
20 '''
21
22
23 class TTS:
24 '''
25 TextToSpeech facade.
26 '''
27
28 def speak(self, message=''):
29 '''Use text to speech capabilities to speak the message.
30
31 :param message: What to speak
32 :type message: str
33 '''
34 self._speak(message=message)
35
36 # private
37
38 def _speak(self, **kwargs):
39 raise NotImplementedError()