Skip to content

Instantly share code, notes, and snippets.

from scipy.io import wavfile
from pathlib import Path
import librosa
def process_audios(rec_path: Path, channel=0):
rec_path
try:
rec_sr, rec_signal = wavfile.read(rec_path)
except FileNotFoundError:
print(f'Missing recording file for: {row}')
#include<vector>
#include<set>
#include<iostream>
using namespace std;
template<class Container>
typename Container::value_type max(const Container& c) {
typename Container::const_iterator begin = c.begin();
typename Container::const_iterator end = c.end();