Spaces:
Sleeping
Sleeping
IliaLarchenko
commited on
Commit
•
855406f
1
Parent(s):
b55cbea
Empty text TTS fix
Browse files- api/audio.py +4 -0
api/audio.py
CHANGED
@@ -171,6 +171,10 @@ class TTSManager:
|
|
171 |
:param stream: Whether to use streaming or not.
|
172 |
:return: Generator yielding chunks of audio bytes.
|
173 |
"""
|
|
|
|
|
|
|
|
|
174 |
if stream is None:
|
175 |
stream = self.streaming
|
176 |
|
|
|
171 |
:param stream: Whether to use streaming or not.
|
172 |
:return: Generator yielding chunks of audio bytes.
|
173 |
"""
|
174 |
+
|
175 |
+
if not text:
|
176 |
+
yield b""
|
177 |
+
|
178 |
if stream is None:
|
179 |
stream = self.streaming
|
180 |
|