diff options
Diffstat (limited to 'app/converter/clients/faster.py')
| -rw-r--r-- | app/converter/clients/faster.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/converter/clients/faster.py b/app/converter/clients/faster.py index df98546..f0874e0 100644 --- a/app/converter/clients/faster.py +++ b/app/converter/clients/faster.py @@ -102,9 +102,8 @@ class FasterTTSClient(BaseTTSClient): pcm_parts: List[bytes] = [] with self._chunk_heartbeat(chunk_num): - for sub_num, sub_text in enumerate(sub_chunks, 1): - pcm = self._request_pcm(sub_text) - pcm_parts.append(pcm) + for sub_text in sub_chunks: + pcm_parts.append(self._request_pcm(sub_text)) output_path = self._chunk_path(chunk_num, ".wav") with wave.open(str(output_path), "wb") as wav_file: |
