Closed ERosendo closed 4 months ago
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 👎
Sure!
This PR introduces a new helper method named
convert_to_ogg
which usesffmpeg
to convert media files to the OGG format with the following specifications:-b:a 8k
)-application voip
)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.