Skip to content

Instantly share code, notes, and snippets.

View VojtechKlos's full-sized avatar

Vojtěch Klos VojtechKlos

View GitHub Profile
@VojtechKlos
VojtechKlos / split_silence.sh
Created October 12, 2017 14:10
Guide to split audio recording by silence with SoX and ffmpeg
# First denoise audio
## Get noise sample
ffmpeg -i input.ogg -vn -ss 00:00:00 -t 00:00:01 noise-sample.wav
## Create noise profile
sox noise-sample.wav -n noiseprof noise.prof
## Clean audio from noise
sox input.ogg clean.wav noisered noise.prof 0.21
@VojtechKlos
VojtechKlos / random.js
Created December 30, 2017 23:54
random number between
function randomIntFromInterval(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://www.google.com/shopping/reviews/schema/product/2.3/product_reviews.xsd">
<version>2.3</version>
<aggregator>
<name>Sample Reviews Aggregator (if applicable)</name>
</aggregator>
<publisher>