Update nodes.py
This commit is contained in:
@@ -1063,7 +1063,6 @@ class TTS_generation:
|
|||||||
CATEGORY = "DeepFuze" # Category for the node in the UI
|
CATEGORY = "DeepFuze" # Category for the node in the UI
|
||||||
|
|
||||||
def generate_audio(self, audio, text,device,supported_language):
|
def generate_audio(self, audio, text,device,supported_language):
|
||||||
print(text)
|
|
||||||
language = supported_language.split("(")[1][:-1]
|
language = supported_language.split("(")[1][:-1]
|
||||||
file_path = os.path.join(audio_path,str(time.time()).replace(".","")+".wav")
|
file_path = os.path.join(audio_path,str(time.time()).replace(".","")+".wav")
|
||||||
write(file_path,audio.sample_rate,audio.audio_data)
|
write(file_path,audio.sample_rate,audio.audio_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user