Add <prosody volume="..."> in SSML

This commit is contained in:
Michael Hansen 2022-04-08 11:23:51 -04:00
commit 668a46f16d
7 changed files with 213 additions and 6 deletions

View file

@ -206,6 +206,15 @@ class TextToSpeechSystem(AbstractContextManager, metaclass=ABCMeta):
def language(self, new_language: str):
"""Set the current voice language"""
@property
@abstractmethod
def volume(self) -> float:
"""Get the current volume in [0, 100]"""
@volume.setter
def volume(self, new_volume: float):
"""Set the current volume in [0, 100]"""
def shutdown(self):
"""Called by the host program when the text to speech system should be stopped"""