chore(lint): burn down remaining warnings to zero
This commit is contained in:
+4
-1
@@ -241,9 +241,12 @@ export async function transcribeAudio(
|
||||
if (!config?.endpoint) {
|
||||
return '[Audio message received but no transcription service is configured]';
|
||||
}
|
||||
if (!attachment.data) {
|
||||
return '[Audio message transcription failed]';
|
||||
}
|
||||
|
||||
try {
|
||||
const audioBuffer = Buffer.from(attachment.data!, 'base64');
|
||||
const audioBuffer = Buffer.from(attachment.data, 'base64');
|
||||
const ext = mimeToExtension(attachment.mimeType);
|
||||
const formData = new FormData();
|
||||
formData.append('file', new Blob([audioBuffer], { type: attachment.mimeType }), `audio.${ext}`);
|
||||
|
||||
Reference in New Issue
Block a user