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

@ -1,7 +1,7 @@
const { Constants } = require('detritus-client');
const { InteractionCallbackTypes, ApplicationCommandTypes, MessageFlags } = Constants;
const { googleSpeechRecognitionWithLabels } = require('../../../labscore/api');
const { transcribeWithSpeakerLabelsObelisk } = require('../../../labscore/api/obelisk');
const { createEmbed } = require('../../../labscore/utils/embed');
const { codeblock } = require('../../../labscore/utils/markdown');
@ -34,7 +34,7 @@ module.exports = {
flags: MessageFlags.EPHEMERAL
})
const recog = await googleSpeechRecognitionWithLabels(context, message.attachments.first().url)
const recog = await transcribeWithSpeakerLabelsObelisk(context, message.attachments.first().url)
return editOrReply(context, {
embeds: [createEmbed("default", context, {