Text-to-Speech
Pocket-TTS
Safetensors
Korean
audio
korean
voice-cloning
sentencepiece
knowledge-distillation
Instructions to use seastar105/pocket-tts-korean-100m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pocket-TTS
How to use seastar105/pocket-tts-korean-100m with Pocket-TTS:
from pocket_tts import TTSModel import scipy.io.wavfile tts_model = TTSModel.load_model("seastar105/pocket-tts-korean-100m") voice_state = tts_model.get_state_for_audio_prompt( "hf://kyutai/tts-voices/alba-mackenna/casual.wav" ) audio = tts_model.generate_audio(voice_state, "Hello world, this is a test.") # Audio is a 1D torch tensor containing PCM data. scipy.io.wavfile.write("output.wav", tts_model.sample_rate, audio.numpy()) - Notebooks
- Google Colab
- Kaggle
Download korean.yaml from seastar105/pocket-tts-korean-100m: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/seastar105/pocket-tts-korean-100m/resolve/main/korean.yaml
- Command line
-
hf download hf://seastar105/pocket-tts-korean-100m/korean.yaml
-
curl -L -o korean.yaml https://huggingface.co/seastar105/pocket-tts-korean-100m/resolve/main/korean.yaml
1.45 kB
| # Pocket-TTS Korean 6-layer distilled student. | |
| # The bundle contains both FlowLM and Mimi weights. Runtime files are pinned to | |
| # the immutable binary upload commit below. | |
| weights_path: hf://seastar105/pocket-tts-korean-100m/model.safetensors@487e8440e4b5ff67ef58d0d100cd2335234d6c2f | |
| weights_path_without_voice_cloning: hf://seastar105/pocket-tts-korean-100m/model.safetensors@487e8440e4b5ff67ef58d0d100cd2335234d6c2f | |
| default_temperature: 0.3 | |
| flow_lm: | |
| insert_bos_before_voice: true | |
| dtype: float32 | |
| flow: | |
| depth: 6 | |
| dim: 512 | |
| transformer: | |
| d_model: 1024 | |
| hidden_scale: 4 | |
| max_period: 10000 | |
| num_heads: 16 | |
| num_layers: 6 | |
| lookup_table: | |
| dim: 1024 | |
| n_bins: 4000 | |
| tokenizer: sentencepiece | |
| tokenizer_path: hf://seastar105/pocket-tts-korean-100m/tokenizer.model@caf65e27541dc531eec16a34b6c4177b40d14750 | |
| mimi: | |
| dtype: float32 | |
| sample_rate: 24000 | |
| inner_dim: 32 | |
| outer_dim: 512 | |
| channels: 1 | |
| frame_rate: 12.5 | |
| seanet: | |
| dimension: 512 | |
| channels: 1 | |
| n_filters: 64 | |
| n_residual_layers: 1 | |
| ratios: | |
| - 6 | |
| - 5 | |
| - 4 | |
| kernel_size: 7 | |
| residual_kernel_size: 3 | |
| last_kernel_size: 3 | |
| dilation_base: 2 | |
| pad_mode: constant | |
| compress: 2 | |
| transformer: | |
| d_model: 512 | |
| num_heads: 8 | |
| num_layers: 2 | |
| layer_scale: 0.01 | |
| context: 250 | |
| dim_feedforward: 2048 | |
| input_dimension: 512 | |
| output_dimensions: | |
| - 512 | |
| quantizer: | |
| dimension: 32 | |
| output_dimension: 512 | |