This commit is contained in:
yumoqing 2024-01-31 16:06:03 +08:00
parent ef18f8a114
commit 3dd1dca6dd
2 changed files with 3 additions and 2 deletions

View File

@ -4,10 +4,9 @@ from TTS.utils.synthesizer import Synthesizer
import numpy as np import numpy as np
from logmmse import logmmse from logmmse import logmmse
from scipy.io.wavfile import write from scipy.io.wavfile import write
from ahserver.serverenv import ServerEnv from ahserver.serverenv import ServerEnv
class TTS: class CoquiTTS:
def __init__(self, model_name): def __init__(self, model_name):
manager = ModelManager() manager = ModelManager()
# model_path, config_path, model_item = manager.download_model("tts_models/zh-CN/baker/tacotron2-DDC-GST") # model_path, config_path, model_item = manager.download_model("tts_models/zh-CN/baker/tacotron2-DDC-GST")

View File

@ -6,9 +6,11 @@ try:
except ImportError: except ImportError:
from distutils.core import setup from distutils.core import setup
required = [] required = []
"""
with open('requirements.txt', 'r') as f: with open('requirements.txt', 'r') as f:
ls = f.read() ls = f.read()
required = ls.split('\n') required = ls.split('\n')
"""
with open('coquitts/version.py', 'r') as f: with open('coquitts/version.py', 'r') as f:
x = f.read() x = f.read()