Instructions to use Steven-GU-Yu-Di/Text-to-Speech-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Steven-GU-Yu-Di/Text-to-Speech-Small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="Steven-GU-Yu-Di/Text-to-Speech-Small")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("Steven-GU-Yu-Di/Text-to-Speech-Small") model = AutoModelForTextToWaveform.from_pretrained("Steven-GU-Yu-Di/Text-to-Speech-Small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Steven-GU-Yu-Di/Text-to-Speech-Small: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/Steven-GU-Yu-Di/Text-to-Speech-Small/resolve/main/config.json
- Command line
-
hf download hf://Steven-GU-Yu-Di/Text-to-Speech-Small/config.json
-
curl -L -o config.json https://huggingface.co/Steven-GU-Yu-Di/Text-to-Speech-Small/resolve/main/config.json
1.05 kB
| { | |
| "_name_or_path": "suno/bark-small", | |
| "architectures": [ | |
| "BarkModel" | |
| ], | |
| "coarse_acoustics_config": { | |
| "architectures": [ | |
| "BarkCoarseModel" | |
| ], | |
| "bias": false, | |
| "input_vocab_size": 12096, | |
| "model_type": "coarse_acoustics", | |
| "output_vocab_size": 12096, | |
| "torch_dtype": "float32" | |
| }, | |
| "codec_config": { | |
| "_name_or_path": "facebook/encodec_24khz", | |
| "architectures": [ | |
| "EncodecModel" | |
| ], | |
| "model_type": "encodec", | |
| "torch_dtype": "float32" | |
| }, | |
| "fine_acoustics_config": { | |
| "architectures": [ | |
| "BarkFineModel" | |
| ], | |
| "bias": false, | |
| "input_vocab_size": 1056, | |
| "model_type": "fine_acoustics", | |
| "output_vocab_size": 1056, | |
| "torch_dtype": "float32" | |
| }, | |
| "initializer_range": 0.02, | |
| "model_type": "bark", | |
| "semantic_config": { | |
| "architectures": [ | |
| "BarkSemanticModel" | |
| ], | |
| "bias": false, | |
| "input_vocab_size": 129600, | |
| "model_type": "semantic", | |
| "torch_dtype": "float32" | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.38.2" | |
| } | |