-
Notifications
You must be signed in to change notification settings - Fork 243
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
Consider adapt to Auditok v0.1.8 #137
Comments
Sorry to bother you again.
I once tried to use Auditok 0.1.8 directly, an error occurred:
Traceback (most recent call last):
File "/usr/bin/autosub", line 33, in <module>
sys.exit(load_entry_point('autosub==0.5.7a0', 'console_scripts',
'autosub')())
File "/usr/lib/python3.8/site-packages/autosub/__init__.py", line 159, in
main
cmdline_utils.audio_or_video_prcs(args,
File "/usr/lib/python3.8/site-packages/autosub/cmdline_utils.py", line
1357, in audio_or_video_prcs
regions = auditok_utils.auditok_gen_speech_regions(
* File "/usr/lib/python3.8/site-packages/autosub/auditok_utils.py", line
31, in auditok_gen_speech_regions
sample_width=asource.get_sample_width(),*
File "/usr/lib/python3.8/site-packages/auditok/util.py", line 1009, in
__getattr__
raise AttributeError(
AttributeError: 'AudioReader' has no attribute 'get_sample_width'
The error appeared in auditok_utils.py. It seems to be an easy-to-solve
function call problem, some API names may have changed.
After trying the latest dev branch, this problem still exists. Attempting
to downgrade auditok's 0.1.5 can solve this problem well.
I am very sorry for the trouble. Due to my poor python ability, it is
difficult for me to read your code and fix this problem.
Thank you for maintaining this project, this software is very important to
me.
…On Sun, Oct 4, 2020 at 11:12 PM BingLingGroup ***@***.***> wrote:
It seems the higher version of Auditok doesn't have any compatibility
issues. So commit 3489be8
<3489be8>
just simply changes the install_requires in setup.py
<https://github.com/BingLingGroup/autosub/blob/dev/setup.py>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#137 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHJ6HSUC5RVGSN32HERUASDSJBRCLANCNFSM4QF4VW5Q>
.
|
It seems that I finally figure out what's going right now. |
The dev branch seems no longer working because of the recently upgrade of Auditok 0.2.0 . Please consider restrict auditok version or try to be compatible with the new version? Also, any ideas on google's new google-cloud-speech api? |
It's still working. The Auditok version has been restricted in the setup.py. |
Auditok had stayed at v0.1.8 for 2 years. Should be very stable and useful. Downgrade the auditok when using autosub can be very frustrating.
Thanks for your hard work, this autosub is very useful.
The text was updated successfully, but these errors were encountered: