Di dieu aya kode Python anu daptar sadaya file audio dina diréktori sareng nembongkeun panjangna dina detik: import os import wave import contextlib def get_audio_duration(filename): with contextlib.closing(wave.open(filename, 'r')) salaku f: frames = f.getnframes() rate = f.geterate() duration = frames / float(rate) return duration directory = '/path/to/your/directory' pikeun file name in os.listdirdirirectory: if filename.with".(wav") or filename.endspath".mp3": file = os.(joindirectory, fileename) duration = get_audio_duration((((ath"{f} file codef: {f}{f}{f}{f}{f
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence