1

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.

Zining Zhu
  • 313
  • 1
  • 2
  • 12
  • 1
    You should be using `virtualenv` for python development so you do not mess around with sudo and make your python development a bit hazy. In terms of what you have done. I ran `pip install scikits.talkbox` and ran pythn and imported the lib and it worked. I hope you do not run it with `pip install scikits.talkbox.` i.e dot at the end. – Chinny84 Sep 17 '17 at 20:55
  • Thanks for the comment. The dot was autogenerated when double clicking space. It was a typo. – Zining Zhu Sep 17 '17 at 21:07

1 Answers1

0

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
phd
  • 82,685
  • 13
  • 120
  • 165
  • I definitely was able to execute the above import of `lpc` for python 2.7 within a virtualenv. I think his distro may have many different installs and without a `pip uninstall` we could have conflict of versions. – Chinny84 Sep 18 '17 at 03:22
  • Now within `virtualenv`, both `from scikits.talkbox.linpred import lpc` and `from scikits.talkbox.linpred.levinson_lpc import lpc` work. Thanks guys! – Zining Zhu Sep 18 '17 at 15:09