File size: 227 Bytes
c22a65c
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from kittentts import KittenTTS
m = KittenTTS("KittenML/kitten-tts-nano-0.1")

audio = m.generate("This high quality TTS model works without a GPU")

# Save the audio
import soundfile as sf
sf.write('output.wav', audio, 24000)