Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/tasks/src/model-libraries-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,17 @@ print(text)
`,
];

export const kittentts = (model: ModelData): string[] => [
`from kittentts import KittenTTS
m = KittenTTS("${model.id}")

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)`,
];

export const lightning_ir = (model: ModelData): string[] => {
if (model.tags.includes("bi-encoder")) {
return [
Expand Down
6 changes: 6 additions & 0 deletions packages/tasks/src/model-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,12 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
snippets: snippets.kimi_audio,
filter: false,
},
kittentts: {
prettyLabel: "KittenTTS",
repoName: "kittentts",
repoUrl: "https://github.com/KittenML/KittenTTS",
snippets: snippets.kittentts,
},
kronos: {
prettyLabel: "KRONOS",
repoName: "KRONOS",
Expand Down
Loading