def dirsWavFeatureExtraction(dirNames, mtWin, mtStep, stWin, stStep, computeBEAT=False):
 features = []
 classNames = []
 fileNames = []
 for (i, d) in enumerate(dirNames):
  [f, fn] = dirWavFeatureExtraction(d, mtWin, mtStep, stWin, stStep, computeBEAT=computeBEAT)
  if (f.shape[0] > 0):
   features.append(f)
   fileNames.append(fn)
   if (d[(-1)] == '/'):
    classNames.append(d.split(os.sep)[(-2)])
   else:
    classNames.append(d.split(os.sep)[(-1)])
 return (features, classNames, fileNames)

def dirsWavFeatureExtraction ( dirNames , mtWin , mtStep , stWin , stStep , computeBEAT = False ) : features = [ ] classNames = [ ] fileNames = [ ] for ( i , d ) in enumerate ( dirNames ) : [ f , fn ] = dirWavFeatureExtraction ( d , mtWin , mtStep , stWin , stStep , computeBEAT = computeBEAT ) if ( f . shape [ 0 ] > 0 ) : features . append ( f ) fileNames . append ( fn ) if ( d [ ( - 1 ) ] == '/' ) : classNames . append ( d . split ( os . sep ) [ ( - 2 ) ] ) else : classNames . append ( d . split ( os . sep ) [ ( - 1 ) ] ) return ( features , classNames , fileNames )
same as dirwavfeatureextraction .