Basically, this takes a MIDI input file (I just googled and grabbed one of Maroon 5's "Animal" – I know, I know) and generates a WAV file.
NOTE: This is the slowest midi rendering program I have ever seen!
Dependencies:
- Pydub (pydub.com)
Basically, this takes a MIDI input file (I just googled and grabbed one of Maroon 5's "Animal" – I know, I know) and generates a WAV file.
NOTE: This is the slowest midi rendering program I have ever seen!
Dependencies:
| #!/usr/bin/env bash | |
| SOUNDFONT=/Users/kroger/Dropbox/Sfonts/BOPLMEVF16.sf2 | |
| TMPDIR=/tmp | |
| if [[ ! -f $SOUNDFONT ]] | |
| then | |
| echo "Couldn't find the soundfont: $SOUNDFONT" | |
| exit 1 |
| ''' | |
| A hack based on this http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/. While with smaller voice samples google speech to text works really good, as length increases quality decreases. So here using audiolab and numPy we are breaking audio sample, in smaller chunks, and removing blank/empty spaces from audio signal and then pushing them to google for processing. | |
| It takes wav file format as input but can be changed to other formats too. | |
| ''' | |
| from scikits.audiolab import wavread, play, flacwrite | |
| from numpy import average, array, hstack | |
| import os | |
| import sys |