[M] Move non-api scripts to experiment\
This commit is contained in:
@@ -119,7 +119,6 @@ dmypy.json
|
|||||||
._*
|
._*
|
||||||
voice-bot-token.txt
|
voice-bot-token.txt
|
||||||
audio_tmp
|
audio_tmp
|
||||||
src/voice-bot-token.txt
|
|
||||||
venv8
|
venv8
|
||||||
venv9
|
venv9
|
||||||
|
|
||||||
|
|||||||
+1
-6
@@ -1,13 +1,8 @@
|
|||||||
import json
|
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
|
||||||
import numpy as np
|
|
||||||
from parselmouth import Sound
|
from parselmouth import Sound
|
||||||
from scipy.stats import gaussian_kde
|
from scipy.stats import gaussian_kde
|
||||||
|
|
||||||
from statistics import *
|
from statistics import *
|
||||||
|
|
||||||
|
|
||||||
Feature = Literal['pitch', 'f1', 'f2', 'f3', 'tilt']
|
Feature = Literal['pitch', 'f1', 'f2', 'f3', 'tilt']
|
||||||
Gender = Literal['f', 'm']
|
Gender = Literal['f', 'm']
|
||||||
|
|
||||||
@@ -15,7 +10,7 @@ Gender = Literal['f', 'm']
|
|||||||
_kde_functions: dict[Feature, dict[Gender, gaussian_kde]] = {}
|
_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
|
Load statistical results into kernel density functions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user