def LLM_SemanticIntegration(filepath: list, LLM_cnt: int) -> str:
    GOOGLE_API_KEY = 'AIzaSyAsndTThs5yJWZXtQ8rDHErmBTvqYsGeJI'  
    genai.configure(api_key=GOOGLE_API_KEY)
    model = genai.GenerativeModel('gemini-1.5-flash')

    for index,file in enumerate(filepath):
        with open(file, 'r', encoding='utf-8') as f:
            if LLM_cnt > 1450:
                return file
            content = f.read()
            LLM_cnt += 1
            response = model.generate_content("现在需要你将下面的音频段落按照语义重新分段，输出格式为“时间戳”：“内容”，“内容不需要你总结，你只负责按照新的时间戳合并原文内容”："+content)
            response = response.text
            f.close()
        with open(file.replace(".txt","_.txt"), 'w', encoding='utf-8') as f:
            print(response)
            f.write(response)
            f.close()
