I'm burnt out, I can't get multithreaded audio feature extractor to work :(
This commit is contained in:
21
mtafe_lab/test_mtafe.py
Normal file
21
mtafe_lab/test_mtafe.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import logging
|
||||
logging.basicConfig(format="%(asctime)s/%(levelname)s: [%(module)s] %(message)s", level=logging.INFO)
|
||||
|
||||
import mtafe
|
||||
from dataset import random_audio_chunk
|
||||
|
||||
logging.info("Generating random audio path list")
|
||||
rdpl = random_audio_chunk(2)
|
||||
|
||||
logging.info("Initializing MTAFE")
|
||||
mtafe.initialize_parameters(
|
||||
paudio_paths=rdpl,
|
||||
pmax_audio_in_queue=4,
|
||||
paudio_feeder_threads=2,
|
||||
pfeature_extractor_threads=1,
|
||||
pdesired_sr=32000,
|
||||
pforce_mono=False,
|
||||
pchunk_length=15,
|
||||
pchunk_overlap=2
|
||||
)
|
||||
mtafe.test_feeder()
|
||||
Reference in New Issue
Block a user