Spaces:
Build error
Build error
Michael Hu
commited on
Commit
·
b2b15db
1
Parent(s):
7495571
fix path
Browse files- utils/tts.py +4 -4
- utils/tts_cosyvoice2.py +1 -1
- utils/tts_dia.py +1 -1
- utils/tts_kokoro.py +1 -1
utils/tts.py
CHANGED
@@ -3,12 +3,12 @@ from typing import Optional, Generator, Tuple, List, Dict, Any
|
|
3 |
import numpy as np
|
4 |
|
5 |
# Import the base class and dummy implementation
|
6 |
-
from utils.
|
7 |
|
8 |
# Import the specific TTS implementations
|
9 |
-
from utils.
|
10 |
-
from utils.
|
11 |
-
from utils.
|
12 |
|
13 |
# Configure logging
|
14 |
logger = logging.getLogger(__name__)
|
|
|
3 |
import numpy as np
|
4 |
|
5 |
# Import the base class and dummy implementation
|
6 |
+
from utils.tts import TTSBase, DummyTTS
|
7 |
|
8 |
# Import the specific TTS implementations
|
9 |
+
from utils.tts_kokoro import KokoroTTS, KOKORO_AVAILABLE
|
10 |
+
from utils.tts_dia import DiaTTS, DIA_AVAILABLE
|
11 |
+
from utils.tts_cosyvoice2 import CosyVoice2TTS, COSYVOICE2_AVAILABLE
|
12 |
|
13 |
# Configure logging
|
14 |
logger = logging.getLogger(__name__)
|
utils/tts_cosyvoice2.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import soundfile as sf
|
4 |
from typing import Optional, Generator, Tuple
|
5 |
|
6 |
-
from utils.
|
7 |
|
8 |
# Configure logging
|
9 |
logger = logging.getLogger(__name__)
|
|
|
3 |
import soundfile as sf
|
4 |
from typing import Optional, Generator, Tuple
|
5 |
|
6 |
+
from utils.tts import TTSBase, DummyTTS
|
7 |
|
8 |
# Configure logging
|
9 |
logger = logging.getLogger(__name__)
|
utils/tts_dia.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import soundfile as sf
|
4 |
from typing import Optional, Generator, Tuple
|
5 |
|
6 |
-
from utils.
|
7 |
|
8 |
# Configure logging
|
9 |
logger = logging.getLogger(__name__)
|
|
|
3 |
import soundfile as sf
|
4 |
from typing import Optional, Generator, Tuple
|
5 |
|
6 |
+
from utils.tts import TTSBase, DummyTTS
|
7 |
|
8 |
# Configure logging
|
9 |
logger = logging.getLogger(__name__)
|
utils/tts_kokoro.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import soundfile as sf
|
4 |
from typing import Optional, Generator, Tuple
|
5 |
|
6 |
-
from utils.
|
7 |
|
8 |
# Configure logging
|
9 |
logger = logging.getLogger(__name__)
|
|
|
3 |
import soundfile as sf
|
4 |
from typing import Optional, Generator, Tuple
|
5 |
|
6 |
+
from utils.tts import TTSBase, DummyTTS
|
7 |
|
8 |
# Configure logging
|
9 |
logger = logging.getLogger(__name__)
|