!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse
from google.colab import auth
auth.authenticate_user()
from oauth2client.client import GoogleCredentials
creds = GoogleCredentials.get_application_default()
import getpass
!google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
vcode = getpass.getpass()
!echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}
!mkdir -p /gdrive
!google-drive-ocamlfuse /gdrive

--

--

Demo Feature file to check if openSMILE is working completely
This should generate a file input.energy.csv in the output folder path
If the SMILExtract is not added to the /usr/bin path then you need to use ./SMILExtract from the openSMILE folder path

./SMILExtract –C config/demo/demo1_energy.conf –I <input_folder_path>/input.wav –O <output_folder_path>/input.energy.csv

Chroma Features

./SMILExtract -C config/chroma_fft.conf -I input.wav -O chroma.csv

./SMILExtract –cfgFileTemplate –configDflt cWaveSource,cFramer,cEnergy,cCsvSink -1 1 2>
myconfig/demo1.conf

MFCC Features

./SMILExtract –C config/MFCC12_0_D_A.conf –I input.wav –O output.mfcc.htk

PLP Features

./SMILExtract –C config/PLP_E_D_A.conf –I input.wav –O output.plp.htk





Prosody Features
./SMILExtract –C config/prosodyShs.conf –I input.wav –O prosody.csv

--

--

Today, we will learn How to get the duration of a file using ffmpeg

1. Format Container Duration — [This works for both Video and Audio Files — better to report numbers using this command]

ffprobe -v error -show_entries format=duration \
-of default=noprint_wrappers=1:nokey=1 input.mp4

2. Video Stream Duration — [This works only for Videos]

ffprobe -v error -select_streams v:0 -show_entries stream=duration \
-of default=noprint_wrappers=1:nokey=1 input.mp4

--

--

In this post, I am going to save your time by showing how to download files from Google Drive

This method works to download files using wget.

Steps to follow are -

1. pip install gdown

2. Create link to your file with “Anyone with link…

--

--

Ankit Shah

Ankit Shah

Deep Learning Scientist at ReviveMed and Masters in Language Technologies Graduate from Carnegie Mellon University