Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash of Sopare when exceeding threshold - using numpy >=1.13 #10

Closed
Ringo96 opened this issue Jan 15, 2018 · 1 comment
Closed

Crash of Sopare when exceeding threshold - using numpy >=1.13 #10

Ringo96 opened this issue Jan 15, 2018 · 1 comment

Comments

@Ringo96
Copy link

Ringo96 commented Jan 15, 2018

Hello,

i've already written you on your blog and opened now the issue like you suggested.
https://www.bishoph.org/sopare-precision-and-accuracy/#comment-198

So the program crashed as soon as the sound level got over threshold with the following message:

Process buffering queue:
Traceback (most recent call last):
File „/usr/lib/python2.7/multiprocessing/process.py“, line 258, in _bootstrap
self.run()
File „/home/pi/testing_sopare/sopare/buffering.py“, line 43, in run
self.proc.check_silence(buf)
File „/home/pi/testing_sopare/sopare/processing.py“, line 74, in check_silence
self.prepare.prepare(buf, volume)
File „/home/pi/testing_sopare/sopare/prepare.py“, line 125, in prepare
self.tokenize(meta)
File „/home/pi/testing_sopare/sopare/prepare.py“, line 50, in tokenize
self.filter.filter(self.buffer, meta)
File „/home/pi/testing_sopare/sopare/filter.py“, line 130, in filter
if (shift_fft != None and self.cfg.hasoption(‚experimental‘, ‚FFT_SHIFT‘) and self.cfg.getbool(‚experimental‘, ‚FFT_SHIFT‘) == True):

I've tried the change you suggested
if ((shift_fft is not None) and self.cfg.hasoption('experimental', 'FFT_SHIFT') and self.cfg.getbool('experimental', 'FFT_SHIFT') == True):
at line 130 in the filter.py and it works!
The program is now working and I will start training words :)
Thanks very much!

@Ringo96 Ringo96 closed this as completed Jan 15, 2018
@bishoph
Copy link
Owner

bishoph commented Jan 16, 2018

Cool, thanks. The fix will be released with the 1.5.0 release/merge within the next days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants