# Audio Analyzer

# TODO

- [x] calculate the video/audio offset

- [ ] Read the input file(s?) and generate a list of audio files
- [ ] Split each file different channels
- [ ] extract silence from each channel
- [ ] generate an irregularity for each silence found
- [ ] save the list of irregularities as an irregularity file

- [ ] get the irregularity file from video analyzer

- [ ] merge the irregularity files
- [ ] extract the audio from every irregularity
- [ ] for each audio irregularity, make a classification
- [ ] save everything in a single irregularity file

Sample irregularityFile from Audio to Video Analyzer:
```json
{
    "Offset": 0,
    "Irregularities": [
        {
            "IrregularityID": "09859d16-3c73-4bb0-9c74-91b451e34925",
            "Source": "a",
            "TimeLabel": "00:00:00.000",
        },
        {
            "IrregularityID": "09859d16-3c73-4bb0-9c74-91b451e34925",
            "Source": "a",
            "TimeLabel": "00:00:00.000",
        },
        {
            "IrregularityID": "09859d16-3c73-4bb0-9c74-91b451e34925",
            "Source": "a",
            "TimeLabel": "00:00:00.000",
        }
    ]
}
```

Sample irregularityFile from Video to Audio Analyzer:
```json
{
    "Irregularities": [
        {
            "IrregularityID": "09859d16-3c73-4bb0-9c74-91b451e34925",
            "Source": "v",
            "TimeLabel": "00:00:00.000",
        },
        {
            "IrregularityID": "09859d16-3c73-4bb0-9c74-91b451e34925",
            "Source": "v",
            "TimeLabel": "00:00:00.000",
        },
        {
            "IrregularityID": "09859d16-3c73-4bb0-9c74-91b451e34925",
            "Source": "v",
            "TimeLabel": "00:00:00.000",
        }
    ]
}
```