Skip to content

Commit

Permalink
Fix synth handling
Browse files Browse the repository at this point in the history
Remove unused imports
  • Loading branch information
NeonDaniel committed Feb 12, 2025
1 parent 600c16e commit f9cc64e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,15 @@
import os

from os.path import dirname
from queue import Empty
from time import time
from typing import List

from json_database import JsonStorageXDG
from ovos_bus_client.apis.enclosure import EnclosureAPI
from ovos_bus_client.message import Message
from ovos_bus_client.util import get_message_lang
from ovos_plugin_manager.language import OVOSLangDetectionFactory,\
OVOSLangTranslationFactory
from ovos_plugin_manager.templates.g2p import OutOfVocabulary
from ovos_plugin_manager.templates.tts import TTS, TTSContext
from ovos_utils.sound import play_audio
from ovos_plugin_manager.templates.tts import TTS

from neon_utils.file_utils import encode_file_to_base64_string
from neon_utils.message_utils import resolve_message
Expand Down Expand Up @@ -343,7 +339,8 @@ def get_multiple_tts(self, message, **kwargs) -> dict:
else:
tx_sentence = sentence
kwargs['speaker'] = request
wav_file, phonemes = self.synth(tx_sentence, **kwargs)
audio_obj, phonemes = self.synth(tx_sentence, **kwargs)
wav_file = audio_obj.path

# If this is the first response, populate translation and phonemes
responses.setdefault(tts_lang, {"sentence": tx_sentence,
Expand Down

0 comments on commit f9cc64e

Please sign in to comment.