third part

This commit is contained in:
2026-01-30 17:55:29 +04:00
parent 7e9af29a42
commit 5211d954ca
4 changed files with 104 additions and 10 deletions

View File

@@ -63,11 +63,11 @@ async function pepe(){
console.log(response.text)
}
async function shneine(){
async function shneine(fileName, mimeType){
const myfile = await ai.files.upload({
file:'./pedik.ogg',
file:`./uploads/${fileName}`,
config:{
mimeType:'audio/ogg',
mimeType:mimeType,
}
});
@@ -80,7 +80,8 @@ async function shneine(){
})
console.log(response.text)
}
//await shneine();
async function fawatafa() {
@@ -103,5 +104,3 @@ async function fawatafa() {
const fileName = 'outMarat5.wav';
await saveWaveFile(fileName, audioBuffer);
}
await fawatafa();