Posts

Showing posts from December, 2014

Opensmile Toolkit Quick Setup

Image
open Speech and Music Interpretation by Large Space Extraction (openSMILE )  It is written purely in C++, has a fast, efficient, and flexible architecture The latest stable release of openSMILE can be found at http://opensmile.sourceforge.net/ Official Opensmile download link : - http://www.audeering.com/research/opensmile#download Download the latest binary for Opensmile. Support is available for Linux, Windows and Mac Os users. Data input: openSMILE can read data from the following file formats: • RIFF-WAVE (PCM) (for MP3, MP4, OGG, etc. a converter needs to be used) • Comma Separated Value (CSV) • HTK parameter files • WEKA’s ARFF format. • Video streams via openCV. Unix Installation Use the following script that is in dashes  to do a complete installation and below is the description of what the script is doing. Script begins here. -----------------------------------------------------------------------------------------------------------------------

Process text faster with Awk and Sed

Sed comes from “stream editor”, The name Awk is derived from the surnames of its three authors – Alfred Aho, Peter Weinberger and Brian Kernighan – and is a handy pattern matching programming language that is Turing-complete. Sed can handle and quickly process arbitrarily long inputs – its processing capabilities are similar to the capabilities of the ed editor 1) Install Awk and Sed sudo apt-cache search nawk/gawk If found then go for installation of the same sudo apt-get install gawk else check for which gawk  2)  Using Sed The following Sed code globally replaces a given string with another in a text file: $ sed ‘s/string1/string2/g’ textfile   If you want to save the original file contents to a new file and the changed version to the  original file, you should use the -i option as follows: $ sed -i.bak ‘s/three/3/g’ text The previous command replaces every occurrence of the word “three” with “3”, saves the output to the file “text” and keeps the o