mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -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
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue