From c16049d088257ed6ba2051d047bc3e425ea95061 Mon Sep 17 00:00:00 2001 From: Geraldo Homero Date: Thu, 1 Aug 2024 11:40:42 -0300 Subject: [PATCH] =?UTF-8?q?muda=20vozes=20para=20portugu=C3=AAs!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/listaVozes.tsx | 10 ++++++++-- pages/api/get-audio.ts | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/components/listaVozes.tsx b/app/components/listaVozes.tsx index e17653f..3240f10 100644 --- a/app/components/listaVozes.tsx +++ b/app/components/listaVozes.tsx @@ -63,7 +63,10 @@ function ListaVozes() { headers: { "Content-Type": "application/json", }, - body: JSON.stringify({ voiceId, text: texto }), + body: JSON.stringify({ + voiceId, + text: texto + }) }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); @@ -86,7 +89,10 @@ function ListaVozes() { headers: { "Content-Type": "application/json", }, - body: JSON.stringify({ voiceId, text: texto }), + body: JSON.stringify({ + voiceId, + text: texto + }) }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); diff --git a/pages/api/get-audio.ts b/pages/api/get-audio.ts index b9e581d..a56417c 100644 --- a/pages/api/get-audio.ts +++ b/pages/api/get-audio.ts @@ -16,6 +16,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) text, output_format: 'mp3_44100_128', enable_logging: true, + model_id: "eleven_multilingual_v2" }), });