无法确定应使用哪种探测方式。请明确说明

时间:2019-01-23 09:14:13

标签: gmm python-bob

我已经成功安装了bob.bio.spear软件包和其他软件包。但是当我尝试运行下面的代码时。

verify.py -d africanspeakers.py -p energy-2gauss -e mfcc-60 -a gmm -s /home/david/Documents/audio --groups {dev,eval}

我收到此错误

-- ERROR: During the execution, an exception was raised: `bob.ap.Energy' only supports 1D 64-bit float arrays for input array `input'

africanspeakers.py代码在下面。africanspeakers.py是允许我指定要使用的数据文件的行。

import bob.bio.base
from bob.bio.spear.database import AudioBioFile

class AfricanSpeakersDB(bob.bio.base.database.FileListBioDatabase):
  """Wrapper class for AfricanSpeakersDB speaker database.""

  def __init__(self, original_directory="[AfricanSpeakersDB]",    original_extension=".wav"):
    # call base class constructor
    from pkg_resources import resource_filename
    folder = resource_filename(__name__, '/trainingData')
    super(AfricanSpeakersDB, self).__init__(folder, 'db_name',                   bio_file_class=AudioBioFile,
                               original_directory=original_directory,
                               original_extension=original_extension)

   database = AfricanSpeakersDB()

我可能做错了什么?救命!!!

0 个答案:

没有答案