Skip to content

Commit

Permalink
Troubleshoot returned audio file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Feb 12, 2025
1 parent f9cc64e commit a57e8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import os

from os.path import dirname
from pathlib import Path
from time import time
from typing import List

Expand Down Expand Up @@ -340,8 +341,7 @@ def get_multiple_tts(self, message, **kwargs) -> dict:
tx_sentence = sentence
kwargs['speaker'] = request
audio_obj, phonemes = self.synth(tx_sentence, **kwargs)
wav_file = audio_obj.path

wav_file = str(audio_obj)
# If this is the first response, populate translation and phonemes
responses.setdefault(tts_lang, {"sentence": tx_sentence,
"translated": tx_sentence != sentence,
Expand Down

0 comments on commit a57e8ea

Please sign in to comment.