add speaker labels to transcribe

This commit is contained in:
derpystuff 2023-12-23 15:40:15 +01:00
parent 9540a7ac49
commit e2227da8f4

View file

@ -35,7 +35,7 @@ module.exports = {
const recog = await googleSpeechRecognition(context, msg.attachments.first().url)
return editOrReply(context, createEmbed("default", context, {
description: codeblock("ansi", [ recog.response.body.transcription ]),
description: codeblock("md", [ recog.response.body.transcription_with_speakers ]),
footer: {
iconUrl: STATICS.google,
text: `Google Cloud • Confidence: ${(recog.response.body.confidence* 100).toFixed(1)}% • ${context.application.name}`