Open gabriellluz opened 3 years ago
Check the volume of your audio file to make sure it's mostly above -20dB or use -k
option to keep all the intermediate files and review them.
But if I don't use the preprocessing option it works. The crash only happens when I use preprocessing. The volume is ok to me.
Installing auditok from their git repo kinda solved the issue.
pip install git+https://github.com/amsehili/auditok
Now I get a different message when typing the same command line:
Conversion completed.
Use Auditok to detect speech regions.
Traceback (most recent call last):
File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/auditok/util.py", line 1007, in __getattr__
return getattr(self._audio_source, name)
File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/auditok/util.py", line 856, in __getattr__
return getattr(self._audio_source, name)
File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/auditok/util.py", line 736, in __getattr__
return getattr(self._audio_source, name)
AttributeError: 'BufferAudioSource' object has no attribute 'get_sample_width'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mestre/.pyenv/versions/3.8.5/bin/autosub", line 33, in <module>
sys.exit(load_entry_point('autosub==0.5.7a0', 'console_scripts', 'autosub')())
File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/autosub/__init__.py", line 159, in main
cmdline_utils.audio_or_video_prcs(args,
File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/autosub/cmdline_utils.py", line 1357, in audio_or_video_prcs
regions = auditok_utils.auditok_gen_speech_regions(
File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/autosub/auditok_utils.py", line 31, in auditok_gen_speech_regions
sample_width=asource.get_sample_width(),
File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/auditok/util.py", line 1009, in __getattr__
raise AttributeError(
AttributeError: 'AudioReader' has no attribute 'get_sample_width'
Alright. The new error attributes to this https://github.com/BingLingGroup/autosub/issues/137#issuecomment-704807384. I will change the https://github.com/BingLingGroup/autosub/blob/dev/setup.py to make sure the user won't install the incompatible version of Auditok.
About the preprocessing opitons, I get them from this script from this issue https://github.com/agermanidis/autosub/issues/40 . And I also mentioned the source or the function of these commands here https://github.com/BingLingGroup/autosub#input .
Make sure you have read the readme, searched and read the issues related to yours. Otherwise it will be considered as a duplicate which will be closed immediately.
Describe the bug I'm trying to transcribe a video while using pre-processing function
To Reproduce Steps to reproduce the behavior: I've open a terminal and typed
-i "/media/teste.mp4" -ap y -S en-us
Ctrl-A
andCtrl-C
to copy all of them.No custom config used.
Environment (please complete the following information):