iOS_Android_SDK
Collection
Bunch of models for deployment on iOS and macOS devices โข 40 items โข Updated
How to use TheStageAI/pocket-tts-100m-zh with Pocket-TTS:
from pocket_tts import TTSModel
import scipy.io.wavfile
tts_model = TTSModel.load_model("TheStageAI/pocket-tts-100m-zh")
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())Core ML / ANE engines of the Mandarin Chinese 100M-parameter Pocket TTS fine-tune
hustfyb/PocketTTS-ZH-6L by hustfyb (APACHE-2.0; Mandarin with code-switching and number reading, 9174-token tokenizer; fp32 weights taken from the lookbe/pocket-tts-6l copy, verified identical to the author's int8 release),
built on kyutai/pocket-tts, for the TheStage Apple SDK
(model_type: pocket-tts, bundle language zh).
Base model
hustfyb/PocketTTS-ZH-6L