ptwz / python_wizard

Command line LPC analysis tool to generate bitstreams for the Texas Instruments TMS5220 chip
MIT License
43 stars 14 forks source link

Quick Guide #22

Open Yanvps01 opened 6 months ago

Yanvps01 commented 6 months ago

Hi, can you make a quick guide on how to execute this files for noobs?

Edit: I downloaded thonny python and added the scipy package, then runned the file python_wizard_gui ( as said by christurnerchris in the issue #18). But still i can't convert the .wav files to LPC streams.

I got this error message in Thonny:

%Run python_wizard_gui 0 1.1538461538461537 Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\yanvp\AppData\Roaming\Python\Python310\site-packages\scipy__init.py", line 150, in getattr__ return globals()[name] KeyError: 'array'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\yanvp\AppData\Local\Programs\Thonny\lib\tkinter__init.py", line 1921, in call return self.func(args) File "C:\Users\yanvp\AppData\Local\Programs\Thonny\lib\tkinter__init__.py", line 839, in callit func(args) File "C:\Users\yanvp\Desktop\python_wizard-master\python_wizard_gui", line 304, in _repeatedly b = Buffer.fromWave(self.filename) File "C:\Users\yanvp\Desktop\python_wizard-master\pywizard\Buffer.py", line 31, in fromWave d2 = sp.array(data, 'float') File "C:\Users\yanvp\AppData\Roaming\Python\Python310\site-packages\scipy\init.py", line 152, in getattr__ raise AttributeError( AttributeError: Module 'scipy' has no attribute 'array'

This is my UI:

image

This is the file I want to convert:

https://drive.google.com/drive/folders/1eITYrZ8G5vy2q2sdLpcDv9ZlD8DFJGni?usp=drive_link

sintech commented 6 months ago

Wav file should be MONO, 8000 Hz, 16-bit PCM. Use "Normalize" filter to enhance coding results.

Yanvps01 commented 6 months ago

Wav file should be MONO, 8000 Hz, 16-bit PCM. Use "Normalize" filter to enhance coding results.

Yes, the .WAV file is exactly like that. But still can't get results. Can you make another file available so I can test it out?

federicochiesa commented 6 months ago

The problem is that scipy in the latest version removed many deprecated methods. You need to install an older version of scipy to make the program work.

ptwz commented 5 months ago

I'll push an updated version for use with newer scipy versions.

christurnerchris commented 1 month ago

I have same problem, similar errors. How fo you get an old scipy?

ptwz commented 1 month ago

Should be fixed in add73eb