Michael Hu commited on
Commit
aaa0814
·
1 Parent(s): e22e786

fix circular dependency

Browse files
utils/tts.py CHANGED
@@ -3,7 +3,8 @@ 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.tts import TTSBase, DummyTTS
 
7
 
8
  # Import the specific TTS implementations
9
  from utils.tts_kokoro import KokoroTTS, KOKORO_AVAILABLE
 
3
  import numpy as np
4
 
5
  # Import the base class and dummy implementation
6
+ from utils.tts_base import TTSBase
7
+ from utils.tts_dummy import DummyTTS
8
 
9
  # Import the specific TTS implementations
10
  from utils.tts_kokoro import KokoroTTS, KOKORO_AVAILABLE
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.tts import TTSBase
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_base import TTSBase
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.tts import TTSBase
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_base import TTSBase
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.tts import TTSBase
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_base import TTSBase
7
 
8
  # Configure logging
9
  logger = logging.getLogger(__name__)