rishikanthc / Scriberr

Self-hosted AI audio transcription
https://scriberr.app
MIT License
475 stars 18 forks source link

Support for .m4a file format #7

Open ericsharma opened 1 month ago

ericsharma commented 1 month ago

I got the docker image running on my M1 mac and after some initial trouble shooting (manually creating /audio and /transcripts subdirectories) I've had success with transcribing .mp3 file format!

Was wondering if I could get a list of supported file formats. I would like to upload .m4a files ( the file format used for voice memos) but I have not had any success.

Looking at the processed jobs on http://localhost:9243/admin/queues/queue/transcriptionQueue?status=failed I see the .m4a files fail with the following:


Error: Command failed with exit code 1
    at ChildProcess.<anonymous> (file:///app/build/server/chunks/queue-C2m1Jwu2.js:43875:16)
    at ChildProcess.emit (node:events:531:35)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:343:12)
rishikanthc commented 1 month ago

In theory it should work for any format. It runs ffmpeg to convert all audio to 16bit wav. There are no restrictions on the audio format. So I'm not sure why m4a isn't working. Can you post the logs as well from the job queue dashboard ?

phillipjf commented 1 month ago

I had this issue as well. It was failing at the audiowaveform ... step. My file was .mp4 and AudioWaveform v1.10.1 only supports input file name (.mp3, .wav, .flac, .ogg, .oga, .opus, .dat, .json). After converting the upload to .mp3, the job processed successfully.

rishikanthc commented 1 month ago

Ahhhh... strictly speaking audiowaveform isn't needed for transcribing. It's used for generating the peaks for the audio visializer.