Skip to content

nyumaya/nyumaya_benchmark_public

Repository files navigation

Contributing

Suggestions, pull requests are very welcome. Feel free to open an issue.

Benchmark Goals

  • Fast
  • Error Free
  • Able to run different scenarios
  • Graphical output for easy interpretation
  • As simple as possible

Requirements

  • pip install tensorflow
  • pip install numpy
  • pip install pydub

Running the benchmark

  1. Set your data locations in config.py
  2. Point nyumaya_basepath to the nyumaya_audio_recognition repository or clone it to the pointed path (./nyumaya_audio_recognition/)
  3. Populate the noise folder with the demand dataset
  4. Download the scenarios (sh download_scenarios.sh)
  5. Ensure your model is in the nyumaya_audio_recognition/models/Hotword folder
  6. Run the benchmark python3 benchmark.py alexa 3.0.35
  7. The results are written to the result_folder

Scenarios

Scenarios are recording which do not contain the keyword. They are used for measuring false activations. For performance reasons the audio is preprocessed and the extracted features are stored in a tfrecord file. This way we can evaluate different scenarios quickly and efficienlty.

Currently four scenarios are availabled

  1. libri_test_v1.0 (8.5 hours) Test part of the LibriTTS dataset(https://research.google/tools/datasets/libri-tts/) English read speech

  2. ambient_test_v1.0 (31.9 hours) Ambient Noises partly taken from public domain sounds of freesound. It consists mostly of longer recordings of fireworks, beach sounds, rain, wind, shower etc. No intelligible speech is present.

  3. radio_tv_test_v1.1 (11.3 hours) Mixture of far field and near field recordings of webradios

  4. car_bike_test_v1.1 (13.4 hours) Recordings from inside cars and on bikes

Adding own scenarios

An example for making a scenario is presented in the file makeSzenario.py The scenario is composed of multiple recordings (called examples). Make sure each example is not overly long for memory and performance reasons.

Adding own keyword testdata

You should add your keyword files in the folder configured by the keyword_folder parameter in a subfolder named after the keyword (eg. ./keywords/marvin).

Releases

No releases published

Packages

No packages published