feat: streamable audio

Signed-off-by: Neko Ayaka <neko@ayaka.moe>
This commit is contained in:
Neko Ayaka
2024-12-02 00:31:39 +08:00
parent d9ae0aae38
commit d791c8315a
8 changed files with 376 additions and 81 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ export default defineEventHandler(async (event) => {
})
const res = await client.generate({
voice: 'Beatrice',
voice: 'Myriam',
// Beatrice is not 'childish' like the others
// voice: 'Beatrice',
text: body.text,
stream: true,
model_id: 'eleven_multilingual_v2',