Matlab project for automatically converting audio files to spike files using the Neuromorphic Auditory Sensor.
This project has been tested in a x64 computer running Windows10.
If I clone this repository in the following path:
D:\dgutierrezATC\myrepos\GenericSeqMon\
Then I will have a folde architecture like:
...\myrepos
|
--GenericSeqMon
|
--.gitignore
--LICENSE
--README
--GenericSeqMon
|
--Dataset
|
--audio
|
-a
|
--1.wav
--2.wav
-b
|
--1.wav
--2.wav
-c
|
--1.wav
--2.wav
--events
--host
|
--java
|
--dist
|
--...
--jars
|
--...
--startup.m
--mainSoundDB
--...
Few previous configurations need to be done before running the code:
- If jAER software has been launched, please close it.
- In Matlab, write
edit libraryPath.txt
- At the end of the file, please add
D:\dgutierrezATC\myrepos\GenericSeqMon\host\java\jars
- Save the file, and close it.
- Close Matlab and open it again.
C:\dgutierrezATC\Documents\MATLAB
) then you would need to change the absolute path in the file startup.m
since it uses the function pwd
to obtain the current path of the Matlab file.
🔑 Sometimes, after running startup.m
, the following warning message could appear:
WARNING!: no usbiojava in java.library.path: usbiojava libary not found; either you are not running Windows, the UsbIoJava.jar is not on the classpath, or the native DLL is not on java.library.path
In that case, follow this steps:
- Go to the folder
D:\dgutierrezATC\myrepos\GenericSeqMon\host\java\jars\win64
. - Look for the file
usbiojava.dll.file
and change its name by removing.file
(so the file should beusbiojava.dll
). - Finally, modify again the
libraryPath.txt
by adding at the end of the file the path to the .dll file (D:\dgutierrezATC\myrepos\GenericSeqMon\host\java\jars\win64
). - Save the file, and close it.
- Close Matlab and open it again.
Then, in mainSoundDB.m file, change both the source and destination directories.
source = D:\dgutierrezATC\myrepos\GenericSeqMon\Dataset\audio
dest = D:\dgutierrezATC\myrepos\GenericSeqMon\Dataset\events
- Run startup.m
- Run mainSoundDB.m