Auto Detect Audio Language
Language
Audio Language Detection
Detect the language of an audio file.
Upload an audio file and detect the language of the spoken content.
The audio file is uploaded to cloud storage for processing.
Args:
request: The FastAPI request object (required for rate limiting).
audio: The audio file to analyze.
current_user: The authenticated user.
service: The language service instance.
Returns:
AudioDetectedLanguageResponse containing the detected language.
Raises:
ServiceUnavailableError: If the service times out.
ExternalServiceError: If language detection service fails or has connection errors.
Example:
Response:
{
"detected_language": "lug"
}
POST
Auto Detect Audio Language
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
multipart/form-data
Response
Successful Response
Response model for audio language detection.
This model represents the response from audio language detection operations.
Attributes: detected_language: The detected language code from the audio.
Example: >>> response = AudioDetectedLanguageResponse(detected_language="lug")
The detected language code from the audio

