使用Python3的scikits.talkbox出了点问题? [英] Something wrong with scikits.talkbox with Python3?

查看:347
本文介绍了使用Python3的scikits.talkbox出了点问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Python程序从2.10迁移到3.6.软件包scikits.talkbox是其中的一部分.但是,我无法弄清楚如何使用它.从pip进行的安装似乎可以正常工作,但是我无法导入它.有人遇到过这个问题吗?

I am migrating a Python program from 2.10 to 3.6. The packages scikits.talkbox is part of it. However, I cannot figure out how to use it any more. The installation from pip seems to work fine but I cannot import it. Has anyone faced this problem before ?

[manjaro@manjaro-pc ~]$ python --version
Python 3.6.0

[manjaro@manjaro-pc ~]$ sudo pip install scikits.talkbox
Collecting scikits.talkbox
  Using cached scikits.talkbox-0.2.5.tar.gz
Requirement already satisfied: numpy in /usr/lib/python3.6/site-packages (from scikits.talkbox)
Installing collected packages: scikits.talkbox
  Running setup.py install for scikits.talkbox ... done
Successfully installed scikits.talkbox-0.2.5

[manjaro@manjaro-pc ~]$ python 
Python 3.6.0 (default, Jan 16 2017, 12:12:55) 
[GCC 6.3.1 20170109] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import scikits.talkbox
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/scikits/talkbox/__init__.py", line 5, in <module>
    __all__ += tools.__all__
AttributeError: module 'tools' has no attribute '__all__'

推荐答案

您的问题的答案是此链接

The answer to your question is this link Error while importing scikits.talkbox Even I am facing this issue I have switched to librosa

MFCC功能还有另一种方式:python_speech_features http://python-speech-features.readthedocs.io/en/latest/

There is another way for MFCC features: python_speech_features http://python-speech-features.readthedocs.io/en/latest/

这篇关于使用Python3的scikits.talkbox出了点问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆