Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pietrop/a011fc6e953d4737f23a1dca4e0f6036 to your computer and use it in GitHub Desktop.
Save pietrop/a011fc6e953d4737f23a1dca4e0f6036 to your computer and use it in GitHub Desktop.
thinking out loud on a possible way to do speaker diarization module using LIUM

To run

see quick start http://www-lium.univ-lemans.fr/diarization/doku.php/quick_start

 /usr/bin/java -Xmx2024m -jar ./lium_spkdiarization-8.4.1.jar  --fInputMask=./norman_door.mp4.temp.wav --sOutputMask=./showName.seg --doCEClustering  showName
 /usr/bin/java -Xmx2024m -jar ./lium_spkdiarization-8.4.1.jar  --fInputMask=./Bowman_trimmed.wav --sOutputMask=./showName2.seg --doCEClustering  showName

with LIUM, you get the *.c.seg file and you load it as CSV with custom separator (space)

in node? yeah, I would exec LIUM java ... via https://www.npmjs.com/package/shelljs then read the *.c.seg file with https://www.npmjs.com/package/node-json-csv using space as delimiter

https://www.npmjs.com/package/shelljs

https://www.npmjs.com/package/node-json-csv

or any other CSV parser that accepts custom separator (node-json-csv seems dead on github)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment