15 lines
453 B
Python
15 lines
453 B
Python
import pandas as pd
|
|
|
|
from opendbm.api_lib.model import AudioModel
|
|
from opendbm.dbm_lib.dbm_features.raw_features.audio.voice_frame_score import run_vfs
|
|
|
|
|
|
class VoicePrevalence(AudioModel):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self._params = ["aco_voiceframe", "aco_totvoiceframe", "aco_voicepct"]
|
|
|
|
@AudioModel.prep_func
|
|
def _fit_transform(self, path, **kwargs):
|
|
return run_vfs(path, ".", self.r_config, save=False)
|