class_docstr: Data preparation script for the Swiss French Polyphone corpus.
  
  This class provides the scripting backbone for preparing the
  Swiss French Polyphone corpus for ASR training with espnet.  This
  script was written in reference to the following version of the
  corpus as listed on ELRA:
  
  This class/script, together with the corresponding configuration
  file `conf/dataprep.yaml` perform all required data prep.
  
  .. _ELRA-S0030_02:
      http://catalog.elra.info/en-us/repository/browse/ELRA-S0030_02
class_docstr_tok: ["Data","preparation","script","for","the","Swiss","French","Polyphone","corpus",".","This","class","provides","the","scripting","backbone","for","preparing","the","Swiss","French","Polyphone","corpus","for","ASR","training","with","espnet",".","This","script","was","written","in","reference","to","the","following","version","of","the","corpus","as","listed","on","ELRA",":","This","class\/script",",","together","with","the","corresponding","configuration","file","`","conf\/dataprep.yaml","`","perform","all","required","data","prep",".","..","_ELRA-S0030_02",":","http",":","\/\/catalog.elra.info\/en-us\/repository\/browse\/ELRA-S0030_02"]
docstr: Load the filterbank configuration file.
  
  Load the filterbank configuration file.  Here we are still
  wantonly specifying 16kHz but we might want to  make an 8kHz
  variant one day.
  
  Args:
      fbank_conf(str): The filterbank yaml config file.
  
  Returns:
      dict: The parsed yaml configuration file.  It only check srate.
docstr_tok: ["Load","the","filterbank","configuration","file",".","Load","the","filterbank","configuration","file",".","Here","we","are","still","wantonly","specifying","16kHz","but","we","might","want","to","make","an","8kHz","variant","one","day",".","Args",":","fbank_conf","(","str",")",":","The","filterbank","yaml","config","file",".","Returns",":","dict",":","The","parsed","yaml","configuration","file",".","It","only","check","srate","."]
code: def _loadconf(self, fbank_conf):
      """Load the filterbank configuration file.
  
      Load the filterbank configuration file.  Here we are still
      wantonly specifying 16kHz but we might want to  make an 8kHz
      variant one day.
  
      Args:
          fbank_conf(str): The filterbank yaml config file.
  
      Returns:
          dict: The parsed yaml configuration file.  It only check srate.
  
      """
      conf = {}
      with open(fbank_conf) as ifp:
          for line in ifp:
              flag, val = line.strip().split("=")
              conf[flag] = val
  
      if not conf.get("--sample-frequency", None):
          conf["--sample-frequency"] = 16000
      else:
          conf["--sample-frequency"] = int(conf["--sample-frequency"])
  
      return conf
  
imports: import os
  import pathlib
  import re
  import subprocess
  import sys
  from collections import defaultdict
  from random import shuffle
label_desc: Use image node_id 12 for calling the FrPolyphonePrepper obj's underlying member method code with example usage: obj._loadconf(fbank_conf) and returns: conf