Bu yerda python kodida direktoriyadagi barcha audio fayllar ro'yxati va ularning uzunligi soniyalarda ko'rsatiladi: import os import wave import contextlib def get_audio_duration ((filename): with contextlib.closing ((wave.open ((filename, 'r')) as f: frames = f.getnframes ((() rate = f.getframerate ((() duration = frames / floatrate ((() return duration directory = '/path/to/your/directory' for filename in os.dirlist ((directory): if filename.endswith".(wav") or filename.with files".(mp3):path = os.path.joindirectory, filename) duration = get_audio_duration_filepath) (((f{
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence