From 455ea4b27550637c541e1000f79b2f79e208146f Mon Sep 17 00:00:00 2001 From: SBrandeis Date: Thu, 16 Jan 2025 17:51:04 +0100 Subject: [PATCH] example --- packages/inference/src/providers/replicate.ts | 3 +++ packages/inference/test/HfInference.spec.ts | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/packages/inference/src/providers/replicate.ts b/packages/inference/src/providers/replicate.ts index ca0e3ac50..bb0e40197 100644 --- a/packages/inference/src/providers/replicate.ts +++ b/packages/inference/src/providers/replicate.ts @@ -10,4 +10,7 @@ export const REPLICATE_MODEL_IDS: ProviderMapping = { "ByteDance/SDXL-Lightning": "bytedance/sdxl-lightning-4step:5599ed30703defd1d160a25a63321b4dec97101d98b4674bcc56e41f62f35637", }, + // "text-to-speech": { + // "SWivid/F5-TTS": "x-lance/f5-tts:87faf6dd7a692dd82043f662e76369cab126a2cf1937e25a9d41e0b834fd230e" + // }, }; diff --git a/packages/inference/test/HfInference.spec.ts b/packages/inference/test/HfInference.spec.ts index c14737ffb..a64fe7028 100644 --- a/packages/inference/test/HfInference.spec.ts +++ b/packages/inference/test/HfInference.spec.ts @@ -820,6 +820,15 @@ describe.concurrent("HfInference", () => { }); expect(res).toBeInstanceOf(Blob); }); + + it.skip("textToSpeech versioned", async () => { + const res = await client.textToSpeech({ + model: "SWivid/F5-TTS", + provider: "replicate", + inputs: "Hello, how are you?", + }); + expect(res).toBeInstanceOf(Blob); + }) }, TIMEOUT );