update transcription to use obelisk service

This commit is contained in:
derpystuff 2024-04-08 20:29:59 +02:00
parent 8f2727456b
commit 0cac2568d8
4 changed files with 11 additions and 4 deletions

View file

@ -20,6 +20,7 @@ const ObeliskApi = Object.freeze({
AI_WALLPAPER: "/robin/v1/wallpaper:generate",
WEBSHOT: "/peacock/v1/screenshot",
TRANSCRIBE: "/peacock/v1/transcribe",
})
module.exports = {

View file

@ -109,4 +109,10 @@ module.exports.webshot = async function(context, url, allowAdultContent = false)
url,
allow_adult: allowAdultContent
})
}
module.exports.transcribeWithSpeakerLabelsObelisk = async function(context, url){
return await request(ObeliskApi.TRANSCRIBE, "POST", {}, {
url
})
}