Install Multiple Python Versions for Specific Project
-
Home project: https://github.com/pyenv/pyenv
-
Reference to: https://www.tecmint.com/pyenv-install-and-manage-multiple-python-versions-in-linux/
Install Multiple Python Versions for Specific Project
Home project: https://github.com/pyenv/pyenv
Reference to: https://www.tecmint.com/pyenv-install-and-manage-multiple-python-versions-in-linux/
"""Helper functions for working with audio files in NumPy.""" | |
"""some code borrowed from https://github.com/mgeier/python-audio/blob/master/audio-files/utility.py""" | |
import numpy as np | |
import contextlib | |
import librosa | |
import struct | |
import soundfile | |
def float_to_byte(sig): |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
import struct | |
def read_wave_raw(filename): | |
""" | |
Just pass in a filename and get bytes representation of | |
audio data as result | |
:param filename: a wave file | |
:param rate: | |
:return: tuple -> data, #channels, samplerate, datatype (in bits) |