Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,9 +153,9 @@ class NeuTTSWrapper:
|
|
| 153 |
return audio
|
| 154 |
|
| 155 |
def stream_producer(self, queue: asyncio.Queue, text: str, ref_audio_path: str, reference_text: str):
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
try:
|
| 160 |
logger.info("Starting audio production thread...")
|
| 161 |
ref_s = self.tts_model.encode_reference(ref_audio_path)
|
|
|
|
| 153 |
return audio
|
| 154 |
|
| 155 |
def stream_producer(self, queue: asyncio.Queue, text: str, ref_audio_path: str, reference_text: str):
|
| 156 |
+
"""
|
| 157 |
+
[PRODUCER] Runs in a thread, generates audio chunks, and puts them into a queue.
|
| 158 |
+
"""
|
| 159 |
try:
|
| 160 |
logger.info("Starting audio production thread...")
|
| 161 |
ref_s = self.tts_model.encode_reference(ref_audio_path)
|