third part
This commit is contained in:
11
gemini.js
11
gemini.js
@@ -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();
|
||||
Reference in New Issue
Block a user