source:
ammosreader/sample_scripts/audio_reader.py@
72b50cd
| Last change on this file since 72b50cd was 72b50cd, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 365 bytes | |
| Line | |
|---|---|
| 1 | import sys |
| 2 | import os |
| 3 | sys.path.append('../src/') |
| 4 | |
| 5 | from ammosreader.AmmosAudioReader import AmmosAudioReader |
| 6 | |
| 7 | if __name__ == '__main__': |
| 8 | |
| 9 | if len(sys.argv) != 2: |
| 10 | sys.exit() |
| 11 | |
| 12 | file_name = sys.argv[1] |
| 13 | |
| 14 | print("File name:", file_name) |
| 15 | |
| 16 | dat_file = AmmosAudioReader(file_name) |
| 17 | |
| 18 | dat_file.read_all_frames_left() |
| 19 | print(dat_file.container.size()) |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/playground/chrome/site/playground.png)