<jupyter_start><jupyter_text>Using latest version<jupyter_code>def opensmile(file, features, values):
  opensmile_path = os.path.expanduser("C:/Users/Avinash_PC/Downloads/Programs/opensmile-2.3.0/opensmile-2.3.0/bin/Win32")
  wav_fullpath=file
  opensmile_conf=os.path.join("C:/Users/Avinash_PC/Downloads/Programs/opensmile-2.3.0/opensmile-2.3.0/config/emo_large.conf")
  htkfile="C:/Users/Avinash_PC/Desktop/opensmile_feature.txt"

  command="C:/Users/Avinash_PC/Downloads/Programs/opensmile-2.3.0/opensmile-2.3.0/bin/Win32/SMILExtract_Release -C {conf_file} -I {input_file} -O {output_file}".format(
      input_file=wav_fullpath,
      conf_file=opensmile_conf,
      output_file=htkfile)
  
  output=subprocess.check_output(command,shell=True,stderr=subprocess.STDOUT)

  con = pd.read_csv("C:/Users/Avinash_PC/Desktop/opensmile_feature.txt", delimiter=";")

  if features == []:
    features.append("FileName")
    display(con["@relation SMILEfeatures"])
    for i in range(1,6554):
      k=con["@relation SMILEfeatures"][i].split("@attribute ")[1]
      features.append(k)
  g=[]
  g.append(file)
  for i in range(1,6554):
    k=float(con["@relation SMILEfeatures"][6556].split(",")[i])
    g.append(k)
  values.append(g)
  os.remove("C:/Users/Avinash_PC/Desktop/opensmile_feature.txt")
  return con

features=[]
values=[]
for j in glob.glob("C:/Users/Avinash_PC/Desktop/Audio/*.wav"):
  start = time.time()
  print(j)
  opensmile(j,features,values)
  end=time.time()
  print("Time Taken: "+str(end-start))
g = pd.DataFrame(values,columns=features)
g
g.to_csv("C:/Users/Avinash_PC/Desktop/OpenSMILE_Features.csv")<jupyter_output><empty_output><jupyter_text>Lets's try it with Older Version<jupyter_code>def opensmile(file, features, values):
  opensmile_path = os.path.expanduser("C:/Users/Avinash_PC/Downloads/Programs/opensmile-bin-1.0.1/opensmile-1.0.1/bin")
  wav_fullpath=file
  opensmile_conf=os.path.join("C:/Users/Avinash_PC/Downloads/Programs/opensmile-bin-1.0.1/opensmile-1.0.1/config/emo_large.conf")
  htkfile="C:/Users/Avinash_PC/Desktop/opensmile_feature.txt"

  command="C:/Users/Avinash_PC/Downloads/Programs/opensmile-bin-1.0.1/opensmile-1.0.1/bin/SMILExtract -C {conf_file} -I {input_file} -O {output_file}".format(
      input_file=wav_fullpath,
      conf_file=opensmile_conf,
      output_file=htkfile)
  
  output=subprocess.check_output(command,shell=True,stderr=subprocess.STDOUT)

  con = pd.read_csv("C:/Users/Avinash_PC/Desktop/opensmile_feature.txt", delimiter=";")

  if features == []:
    features.append("FileName")
    display(con["@relation SMILEfeatures"])
    for i in range(1,6671):
      k=con["@relation SMILEfeatures"][i].split("@attribute ")[1]
      features.append(k)
  g=[]
  g.append(file)
  for i in range(1,6671):
    k=float(con["@relation SMILEfeatures"][6673].split(",")[i])
    g.append(k)
  values.append(g)
  os.remove("C:/Users/Avinash_PC/Desktop/opensmile_feature.txt")
  return con

features=[]
values=[]
for j in glob.glob("C:/Users/Avinash_PC/Desktop/Audio/*.wav"):
  start = time.time()
  print(j)
  opensmile(j,features,values)
  end=time.time()
  print("Time Taken: "+str(end-start))
g = pd.DataFrame(values,columns=features)
g
g.to_csv("C:/Users/Avinash_PC/Desktop/OpenSMILE_Features_version1.csv")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16808252427184467, 'fraction_numerical': 0.02154126213592233, 'mean_word_length': 5.185741088180112, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '572086', 'license': 'Apache-2.0', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1303, 'n_words': 140, 'path': 'Colab Notebooks/OpenSmile.ipynb', 'repo_name': 'AvinashhMishraa/Automatic_Remote_Interviewing', 'size': '3296'}