enh: audio/x-m4a support

This commit is contained in:
Timothy J. Baek committed 2024-09-24 11:00:47 +02:00
1 parent 33d8d818bd
commit e268ee5675
4 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@
files = [...files, fileItem];
// Check if the file is an audio file and transcribe/convert it to text file
if (['audio/mpeg', 'audio/wav', 'audio/ogg'].includes(file['type'])) {
if (['audio/mpeg', 'audio/wav', 'audio/ogg', 'audio/x-m4a'].includes(file['type'])) {
const res = await transcribeAudio(localStorage.token, file).catch((error) => {
toast.error(error);
return null;