【问题标题】:Trouble getting PointProcess from sound with Parselmouth无法使用 Parselmouth 从声音中获取 PointProcess
【发布时间】:2020-02-20 02:44:44
【问题描述】:

我正在尝试使用 Parselmouth 从 .wav 文件中计算抖动,但 PointProcess 给我带来了麻烦。

关注this,我愿意

sound = parselmouth.Sound(path) # path = path to .wav
pointProcess = parselmouth.praat.call(sound, "To PointProcess (periodic, cc)")

打算跟进

jitter = parselmouth.praat.call(pointProcess, "Get jitter (local)", 0, 0, 0.0001, 0.02, 1.3)

但在我可以之前,我得到了这个错误:

Command "To PointProcess (periodic, cc)" not available for given objects

【问题讨论】:

    标签: python voice praat


    【解决方案1】:

    我刚收到 Parselmouth 的作者 Yannick Jadoul 的回复:

    是的,我想我知道:实际的 Praat 操作是“To PointProcess (periodic, cc)...”而不是“To PointProcess (periodic, cc)”,因为它需要参数并且会在Praat GUI。

    当您为动作添加参数时,Parselmouth 会尽量表现得友好,并在动作名称的末尾添加“...”,如果它不存在(类似于在 Praat 脚本中发生的情况)。所以要么写 parselmouth.praat.call(sound, "To PointProcess (periodic, cc)...") 要么 parselmouth.praat.call(sound, "To PointProcess (periodic, cc)", "BLAH") 应该导致一个更有用的错误(关于你传递的参数的数量或类型),但你的情况有点不走运,你没有。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-20
      • 1970-01-01
      • 1970-01-01
      • 2012-07-18
      • 2011-03-13
      • 1970-01-01
      相关资源
      最近更新 更多