freelawproject / doctor

A microservice for document conversion at scale
https://free.law/projects/doctor
BSD 2-Clause "Simplified" License
57 stars 15 forks source link

feat(audio): Add helper method to downsize audio records #194

Closed ERosendo closed 4 months ago

ERosendo commented 4 months ago

This PR introduces a new helper method named convert_to_ogg which uses ffmpeg to convert media files to the OGG format with the following specifications:

Additionally, this PR updates the audio endpoint to support Ogg conversion and removes the file extension from the temporary filepath. This enhancement enables more flexible output formatting.

sentry-io[bot] commented 4 months ago

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: doctor/views.py

Function Unhandled Issue
convert_audio OSError: file not found: /tmp/audio_29dfe5eb51ce4ac9836427ae84a9946b.mp3 ...
Event Count: 1

Did you find this useful? React with a 👍 or 👎

ERosendo commented 4 months ago

Sure!