From 4a0843f0aabed246b05a51f499c8fae73a3669ed Mon Sep 17 00:00:00 2001 From: sukrucildirr Date: Sat, 7 Jun 2025 23:46:17 +0300 Subject: [PATCH] Update text_to_speech.py --- sources/text_to_speech.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/text_to_speech.py b/sources/text_to_speech.py index 310bfee..993ce28 100644 --- a/sources/text_to_speech.py +++ b/sources/text_to_speech.py @@ -114,7 +114,7 @@ class Speech(): def shorten_paragraph(self, sentence): #TODO find a better way, we would like to have the TTS not be annoying, speak only useful informations """ - Find long paragraph like **explaination**: by keeping only the first sentence. + Find long paragraph like **explanation**: by keeping only the first sentence. Args: sentence (str): The sentence to shorten Returns: @@ -186,4 +186,4 @@ if __name__ == "__main__": spk = Speech(enable=True, language="en", voice_idx=2) for i in range(0, 5): print(f"Speaking english with voice {i}") - spk.speak(tosay_en, voice_idx=i) \ No newline at end of file + spk.speak(tosay_en, voice_idx=i)