This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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(); |