Error while importing scikits.talkbox

你说的曾经没有我的故事 提交于 2020-01-04 09:07:16

问题


I want to use scikits.talkbox, but i get the following error while import scikits.talkbox.

Traceback (most recent call last): File "/home/seref/Desktop/machine learning codes/MFCC/main.py", line 3, in from scikits.talkbox.features.mfcc import mfcc File "/usr/local/lib/python3.5/dist-packages/scikits/talkbox/init.py", line 3, in from tools import * ImportError: No module named 'tools'

code sample

import scipy.io.wavfile
from scikits.talkbox.features.mfcc import mfcc

sample_rate, X = scipy.io.wavfile.read("data/test_1.wav")
ceps, mspec, spec = mfcc(X)

I use following code when installing scikits.talkbox

sudo pip3 install scikits.talkbox

Operation system ubuntu 16.10 python interpreter 3.5.2+


回答1:


If you want MFCCs in Python 3, librosa is probably the better library of your choice.



来源:https://stackoverflow.com/questions/43438250/error-while-importing-scikits-talkbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!