-
Notifications
You must be signed in to change notification settings - Fork 47
Add audio_url support to /transcribe endpoint for remote audio files from frontend #16
Copy link
Copy link
Open
Description
- The
/transcribeendpoint currently only accepts localfile_pathparameters, but the frontend needs to send audio URLs from Firebase storage. We need to enhance the endpoint to support both local file paths and remote URLs for audio transcription.
Currently, the frontend sends requests to /transcription/transcribe with an audio_url parameter, but the backend only accepts file_path. This prevents the frontend from using audio files stored remotely in Firebase.
Screenshots
-
Current expected body schema
-
Filepath :
app/routes/transcript_routes.py
transcription_transcribe_request_model = api.model('TranscriptionTranscribeRequestModel', {
'file_path': fields.String(required=True, description='Path of the audio file.', example='audio.mp3')
})
Proposed Solution
The solution should:
- Allow the
/transcribeendpoint to accept bothfile_pathandaudio_urlparameters - Implement URL handling with the
AudioServicefor remote audio files - Add validation to ensure either
file_pathoraudio_urlis provided (but not both) - Maintain backward compatibility with existing
file_pathfunctionality
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels