18 lines
488 B
Python
18 lines
488 B
Python
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()
|