-
Notifications
You must be signed in to change notification settings - Fork 126
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
Checking sample width, is it necessary? #57
Comments
Hi, This value is actually hard-coded in sidekit >= 1.3.6 (which is used to load the audio file), can you make sure you have sidekit 1.3.6 or 1.3.7 installed? |
Yes, I installed the segmenter via pypi and it came with sidekit 1.3.6.9 (when I installed a while ago)
Then I tried upgrading sidekit but got the same error.
Finally, I also tried the same input files on a linux machine (ubuntu 20.04, ffmpeg 4.2.4), with no luck. |
#56 also reports on an Assertion Error and suggesting using py>=3.8. So I tried py 3.8.8, but it didn't fix the problem. |
Dear @keighrim , We experienced some issues due to recent updates of dependency SIDEKIT. It has been tested using python 3.6.9 and python 3.8.5. Could you clone the latest version available on github, install it in a new virtual environment, and let me know if your issue is now solved ? I'm looking forward to hearing from you before updating the pip repository as well. Kind regards, Sorry for the inconvenience, and thanks a lot for this feedback ! |
This isn't true as when I was testing the segmenter 0.6.6 on python 3.8.8, I mistakenly passed a directory instead of a file to
I tested on python 3.7 & segmenter 0.6.7 (from the I think the issue is resolved. Please feel free to close the issue whenever you think so. |
Thanks a lot for this prompt answer, and for this constructive feedback ! |
Hi, thanks for the useful tool.
The tool fails to run with an
"error: <class 'AssertionError'>")
when I tried to run it on my audio file. I managed to narrow down the source of the error to here;inaSpeechSegmenter/inaSpeechSegmenter/features.py
Line 51 in eb22d89
where the sample width of the temporarily generated wave file is 2 instead of 4.
When I commented that line out out, the tool ran fine and the output seemed a reasonable segmentation. My question is whether the check above is necessary, and if so how I can pre-process my audio file to have sample width of 4.
File information
stderr captured from the subprocessed ffmpeg call (value of
error
from these lines)inaSpeechSegmenter/inaSpeechSegmenter/features.py
Lines 91 to 92 in eb22d89
and arguments used in the call
(Files name is redacted)
The text was updated successfully, but these errors were encountered: