perf: parallelize TTS generation in podcast skill

Use ThreadPoolExecutor to generate audio for multiple script lines
concurrently, significantly speeding up podcast generation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hetao
2026-01-26 14:50:22 +08:00
parent 68a3be1491
commit ff7065b085
2 changed files with 39 additions and 17 deletions

View File

@@ -23,7 +23,7 @@ class AioSandbox(Sandbox):
"""
super().__init__(id)
self._base_url = base_url
self._client = AioSandboxClient(base_url=base_url)
self._client = AioSandboxClient(base_url=base_url, timeout=600)
self._home_dir = home_dir
@property