Download __init__.py from trandackhoa/TTS_stream: direct link, hf CLI and curl.
- Browser
- Download file 788 Bytes
-
https://huggingface.co/trandackhoa/TTS_stream/resolve/main/__init__.py
- Command line
-
hf download hf://trandackhoa/TTS_stream/__init__.py
-
curl -L -o __init__.py https://huggingface.co/trandackhoa/TTS_stream/resolve/main/__init__.py
788 Bytes
| import _codecs | |
| import importlib.metadata | |
| from collections import defaultdict | |
| import numpy as np | |
| import torch | |
| from src.utils.TTS.config.shared_configs import BaseDatasetConfig | |
| from src.utils.TTS.tts.configs.xtts_config import XttsConfig | |
| from src.utils.TTS.tts.models.xtts import XttsArgs, XttsAudioConfig | |
| from src.utils.TTS.utils.radam import RAdam | |
| __version__ = importlib.metadata.version("coqui-tts") | |
| torch.serialization.add_safe_globals([dict, defaultdict, RAdam]) | |
| # Bark | |
| torch.serialization.add_safe_globals( | |
| [ | |
| np.core.multiarray.scalar, | |
| np.dtype, | |
| np.dtypes.Float64DType, | |
| _codecs.encode, # TODO: safe by default from Pytorch 2.5 | |
| ] | |
| ) | |
| # XTTS | |
| torch.serialization.add_safe_globals([BaseDatasetConfig, XttsConfig, XttsAudioConfig, XttsArgs]) | |