This file contains 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
class LabelRTTM(): | |
def __init__(self, fileName=None, startTime=None, duration=None, speakerName=None, rttmLine=None): | |
if rttmLine: | |
self.load(rttmLine) | |
else: | |
self.id = fileName.split(".")[0] | |
self.startTime = float(startTime) | |
self.duration = float(duration) | |
self.endTime = self.startTime + self.duration | |
self.speakerName = speakerName |
This file contains 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
# pip install webrtcvad | |
# pip install noisereduce | |
from scipy.io import wavfile | |
import librosa | |
import numpy as np | |
def splitStereo(stereoWav): | |
"0 : left channel, 1 : right channel" | |
sr, samples = wavfile.read(stereoWav) |
This file contains 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 mega import Mega | |
import os | |
class UploadMega(): | |
def __init__(self, id, password): | |
mega = Mega() | |
self.mega = mega.login(id, password) | |
def upload_single_file(self, path): | |
print("uploading :", path) | |
self.mega.upload(path) |
This file contains 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
<?php | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
$user = 'wordpress'; | |
$pass = 'password'; | |
$host = 'localhost'; |