!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

List of all Coursera Coursework on Startups.

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 for a file” — Use the share button
to create that link. Top right corner of the Google drive file page.

Use the copy link and paste that in the new window.You will see a link like below
You Want to see the id as shown below.
https://drive.google.com/file/d/1us4TH2kao6jJrwZruk4UwoK


3. Copy the id of the file.

4. gdown https://drive.google.com/uc?id=file_id

example here will be →
gdown https://drive.google.com/uc?id=1us4TH2kao6jJrwZruk4UwoK

Enjoy :)

Hope this post saved your valuable time.

  1. What counts is what’s inside the teabag. You will notice that some teabags have fancy labels, while others have ordinary ones. Some have delicate silk tassels while others have humble strings. But here’s the thing to remember: the quality of the beverage is determined by the tea inside the bag…

Like most developers, I love Stackoverflow and used to visit it daily. As I tend to forget sometimes commands for tasks which I had previously seen, I found myself revisiting the same page of Stackoverflow and then remembering the command which people had provided a solution to.

Additionally, overtime while working I had developed a set of commands/tricks to make workflow efficient.

Thus, I have created this repo consisting of some of the hacks/tricks on terminal I have seen/learnt overtime.

Source

When working with deep learning some of the major stoppers are training data and computation resources. Google provides free solution for computation resources with Colaboratory, Google’s free environment which have GPU. Colaboratory provides online jupyter notebook where you can select GPU as back-end server. …

Ankit Shah

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store