[✨ FEATURE] OGG support for local (Parakeet) transcription
Is your feature request related to a problem?
Whatsapp voice messages download as OGG, so currently I need to convert them with ffmpeg as FluidVoice doesn't accept as input in File Transcription.
Describe the solution you'd like
I'd like FluidVoice to either accept it natively or do the transcoding itself to the best format it can work with.
Describe alternatives you've considered
If there was a way to integrate custom terminal commands so I could do something like ffmpeg -i <dropped file> output.mp3 or even pipe in the output stream that could be cool and open up some more advanced workflows.
Additional context
Somewhat related, I couldn't get drag and drop to work and had to click on the Choose Audio or Video File button to open the file picker dialog.
I cloned the repo and got Opus to explore what would it take to implement this.
I'm thinking the Swift OGG library route sounds reasonable, found this library: https://github.com/element-hq/swift-ogg
Also centralising the format support sounds sensible.
Would you accept a PR with these changes @altic-dev?
Current State
The transcribe file feature is spread across several files, with the key ones being:
MeetingTranscriptionService.swift — core processing logic MeetingTranscriptionView.swift — UI, file picker, and drag-and-drop Currently supported formats: WAV, MP3, M4A, AAC, FLAC, AIFF, CAF, MP4, MOV
No existing OGG/Opus/Vorbis support anywhere in the codebase.
What It Would Take to Add OGG Support There are a few layers to consider:
The core problem: AVFoundation doesn't support OGG natively The transcription pipeline uses AVAudioFile to decode audio, then AVAudioConverter to resample to 16kHz mono Float32. macOS's AVFoundation has no built-in OGG/Vorbis/Opus codec support, so AVAudioFile(forReading:) would simply fail on .ogg files.
Options for decoding OGG FFmpeg / libav — Most robust option. Could shell out to ffmpeg (if bundled or expected on the system) to convert OGG to WAV/CAF before feeding it to the existing pipeline. Adds a dependency but handles virtually any format. Swift package wrapping libogg/libvorbis/libopus — e.g., a package like SwiftOGG or wrapping the C libraries directly. More self-contained but narrower. Pre-conversion step — Add a conversion stage before the existing AVAudioFile pipeline that detects unsupported formats and converts them to a temporary WAV/CAF file first.
Code changes needed (regardless of decoding approach) The supported formats are hardcoded in 4 places — not centralised:
Location What MeetingTranscriptionService.swift:~162 Validation array MeetingTranscriptionView.swift:~224 File picker allowedContentTypes MeetingTranscriptionView.swift:~547 Drop validation extensions list MeetingTranscriptionView.swift:~195 User-facing description string You'd need to:
Add a decoding/conversion layer for OGG before the AVAudioFile pipeline Add "ogg" (and possibly "opus") to all 4 format lists Add UTType(filenameExtension: "ogg") to the file picker's allowed content types Update user-facing strings
- A side opportunity Since the format lists are duplicated in 4 places, this would be a good moment to centralise them into a single source of truth — perhaps a static property on the service or a shared constants file. That would make future format additions trivial.
@grohith327 wdyt? Ffmpeg or this ogg route? Ffmpeg might be scalable no?
I just realised ffmpeg would be cool because then all video formats would be supported right away too!
@daaain Can share which MacOS version you are on ? OGG should be supported by AVFoundation (which is what FluidVoice uses). I don't think we would need ffmpeg or a 3rd party dependency. Check the screenshot below, I simply allow listed the OGG file format and was able transcribe the audio. I am on MacOS 26.2
Feel free to try it out, if it does work you can raise a PR. Should be a couple of lines change.
@grohith327 I'm on 26.3.1, just trying your suggestion, but running into build errors with Swift 6 data race issues which I'm trying to work around. Do you also have it (should I try to fix them?) or are the some local settings issues I should change?
Oops, @daaain Didn't realize you had a PR out already. I have also added the right FluidAudio commit to pin to so that the build passes in my PR
@grohith327 It seems the 2 PRs are mostly complementary though, yours fixes the build and does a minimal change to support ogg, but mine centralises file formats and adds all supported formats. I don't mind rebasing mine and addressing Codex's comment and maybe finding / creating some test files.
OK, pushed an update, now the formats are filtered to the 36 containers that can contain audio so the pipeline will be able to handle them.