[M] Move non-api scripts to experiment\

This commit is contained in:
wuliaozhiji
2022-03-24 23:30:57 -04:00
parent 9396d5a83d
commit 48226fd7f7
7 changed files with 1 additions and 7 deletions
-1
View File
@@ -119,7 +119,6 @@ dmypy.json
._*
voice-bot-token.txt
audio_tmp
src/voice-bot-token.txt
venv8
venv9
View File
+1 -6
View File
@@ -1,13 +1,8 @@
import json
import matplotlib.pyplot as plt
import numpy as np
from parselmouth import Sound
from scipy.stats import gaussian_kde
from statistics import *
Feature = Literal['pitch', 'f1', 'f2', 'f3', 'tilt']
Gender = Literal['f', 'm']
@@ -15,7 +10,7 @@ Gender = Literal['f', 'm']
_kde_functions: dict[Feature, dict[Gender, gaussian_kde]] = {}
def load_kde():
def load_kde() -> dict[Feature, dict[Gender, gaussian_kde]]:
"""
Load statistical results into kernel density functions