CMVR-AI-ANALYSIS/tools/build_audio_profile.py

18 lines
488 B
Python
Raw Permalink Normal View History

2026-08-13 16:56:32 +08:00
import argparse
from app.audio import build_audio_profile
from app.profile_store import profile_store
def main() -> None:
parser = argparse.ArgumentParser(description="Build an audio reference feature library")
parser.add_argument("--profile-code", required=True)
args = parser.parse_args()
profile_store.reload()
profile = profile_store.get(args.profile_code, "AUDIO_CLASSIFICATION")
print(build_audio_profile(profile))
if __name__ == "__main__":
main()