File
Blob: archive/fft-benchmark/build.py
| 1 | #!/usr/bin/env python3 |
| 2 | """Build the frozen Opus/FFT streaming benchmark without flashing it.""" |
| 3 | import argparse |
| 4 | import os |
| 5 | from pathlib import Path |
| 6 | import sys |
| 7 | |
| 8 | sys.path.insert(0, str(Path(__file__).resolve().parents[1])) |
| 9 | from support import build_experiment |
| 10 | |
| 11 | parser = argparse.ArgumentParser(description=__doc__) |
| 12 | parser.add_argument("--signaling-url", default=os.environ.get("SIGNALING_URL")) |
| 13 | args = parser.parse_args() |
| 14 | if not args.signaling_url: |
| 15 | parser.error("Set SIGNALING_URL or --signaling-url to your deployed Worker HTTPS origin") |
| 16 | raise SystemExit(build_experiment( |
| 17 | Path(__file__).parent / "firmware", "fft-benchmark", |
| 18 | ("esp-webrtc-solution", "esp-dsp", "esp-adf-libs"), args.signaling_url, rust=True)) |