Python scikits.talkbox can't be used from pip -- want to use lpc

1.6k Views Asked by At

I was trying to use scikits.talkbox.lpc on Mac OS X. Here are what I tried:

#Python 2      
sudo pip install scikits.talkbox. (Edit: no dot after talkbox here)
python
>>> from scikits.talkbox import lpc

ImportError: No module named scikits.talkbox

#Python 3
sudo pip3 install scikits.talkbox  
python3    
>>> from scikits.talkbox import lpc   

Traceback (most recent call last): File "", line 1, in File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/scikits/talkbox/init.py", line 3, in
from tools import * ModuleNotFoundError: No module named 'tools'

Any idea how to make use of scikits.talkbox? Or if it is not usable any longer, is there some recommended way to extract LPC features from audio?

this question suggests using librosa -- but they do not have an lpc module.

1

There are 1 best solutions below

2
On

I don't see any lpc in scikits.talkbox sources. But there is a submodule linpred.levinson_lpc; I think you want

from scikits.talkbox.linpred.levinson_lpc import lpc