Skip to content

Commit

Permalink
muda vozes para português!
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldohomero committed Aug 1, 2024
1 parent 35241e1 commit c16049d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/components/listaVozes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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}`);
Expand Down
1 change: 1 addition & 0 deletions pages/api/get-audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}),
});

Expand Down

0 comments on commit c16049d

Please sign in to comment.