About errors in gemini api

When i use gemini api for model gemini 2.5 flash to transcript audio file size over than 25 mb it not transcript all the audio file and it also translate all the audio to English even that it contains English and arabic conversion.

Hi @keroles_girges1 , Welcome to forum!!!

Thank you for bringing this to our attention. Please upload your audio through the Files API, particularly when working with large files or audio you expect to reuse. The maximum inline request size is 20 MB, including text prompts, system instructions, and audio. If your audio causes the total request size to exceed this limit, then use the Files API to upload an audio file for use in the request.