mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 15:13:04 -04:00
update transcription to use obelisk service
This commit is contained in:
parent
8f2727456b
commit
0cac2568d8
4 changed files with 11 additions and 4 deletions
|
@ -20,6 +20,7 @@ const ObeliskApi = Object.freeze({
|
|||
AI_WALLPAPER: "/robin/v1/wallpaper:generate",
|
||||
|
||||
WEBSHOT: "/peacock/v1/screenshot",
|
||||
TRANSCRIBE: "/peacock/v1/transcribe",
|
||||
})
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue