langgenius/dify · error · AudioTooLargeError
audio_too_large
audio_too_large
Error message
Audio size exceeded. {message} What it means
Error "Audio size exceeded. {message}" thrown in langgenius/dify.
Source
Thrown at api/controllers/console/app/audio.py:307
account_id=current_user.id,
)
# response-contract:ignore
return AudioService.transcript_tts(
app_model=app_model,
session=db.session(),
text=req_data.text,
voice=req_data.voice,
message_ref=message_ref,
is_draft=True,
)
except services.errors.app_model_config.AppModelConfigBrokenError:
logger.exception("App model config broken.")
raise AppUnavailableError()
except NoAudioUploadedServiceError:
raise NoAudioUploadedError()
except AudioTooLargeServiceError as e:
raise AudioTooLargeError(str(e))
except UnsupportedAudioTypeServiceError:
raise UnsupportedAudioTypeError()
except ProviderNotSupportSpeechToTextServiceError:
raise ProviderNotSupportSpeechToTextError()
except ProviderTokenNotInitError as ex:
raise ProviderNotInitializeError(ex.description)
except QuotaExceededError:
raise ProviderQuotaExceededError()
except ModelCurrentlyNotSupportError:
raise ProviderModelCurrentlyNotSupportError()
except InvokeError as e:
raise CompletionRequestError(e.description)
except ValueError as e:
raise e
except Exception as e:
logger.exception("Failed to handle post request to ChatMessageTextApi")
raise InternalServerError()
View on GitHub (pinned to ef8544b173)
When it happens
Trigger: Thrown at api/controllers/console/app/audio.py:307 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12).
Data as JSON: /api/errors/ce5b3305ec1338f4.
Report an issue: GitHub.