prosodylab / Prosodylab-Aligner

Python interface for forced audio alignment using HTK and SoX
http://prosodylab.org/tools/aligner/
MIT License
331 stars 77 forks source link

Need to know More about the Execution #85

Closed praveen5655 closed 3 years ago

praveen5655 commented 4 years ago

Do I need to provide both the audio file and text file to get the Output or either one of them

kylebgorman commented 4 years ago

Since this is for forced alignment you provide the audio (as a .wav) file and the text (as a .lab) file. If you want it to transcribe for you too, that's speech recognition, and this tool is not set up for that setting, which is quite a bit harder/noisier.

praveen5655 commented 4 years ago

Thanks for the info.

When I tried to execute I am getting a error message. Please help me to overcome this problem.

Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/var/www/llp/Prosodylab-Aligner-master/Prosodylab-Aligner-master/aligner/main.py", line 116, in archive = Archive(args.read) File "/var/www/llp/Prosodylab-Aligner-master/Prosodylab-Aligner-master/aligner/archive.py", line 51, in init unpack_archive(source, base) File "/usr/lib/python3.6/shutil.py", line 983, in unpack_archive func(filename, extract_dir, **kwargs) File "/usr/lib/python3.6/shutil.py", line 883, in _unpack_zipfile raise ReadError("%s is not a zip file" % filename) shutil.ReadError: lang-mod.zip is not a zip file Exception ignored in: <object repr() failed> Traceback (most recent call last): File "/var/www/llp/Prosodylab-Aligner-master/Prosodylab-Aligner-master/aligner/archive.py", line 88, in del if self.is_tmpdir: AttributeError: 'Archive' object has no attribute 'is_tmpdir'

kylebgorman commented 4 years ago

Hi again,

Our model files are stored as zip files (because they contain several elements: an acoustic model, a dictionary, a config file, etc.). This is saying that it tried to load a model from something that is not a zip file, that's all the error means. You may need to fix the paths you're passing to the aligner

If you'd like me to help debug this please make a small reproducible example, including:

On Thu, Aug 27, 2020 at 1:03 PM praveen5655 notifications@github.com wrote:

Thanks for the info.

When I tried to execute I am getting a error message. Please help me to overcome this problem.

Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/var/www/llp/Prosodylab-Aligner-master/Prosodylab-Aligner-master/aligner/ main.py", line 116, in archive = Archive(args.read) File "/var/www/llp/Prosodylab-Aligner-master/Prosodylab-Aligner-master/aligner/archive.py", line 51, in init unpack_archive(source, base) File "/usr/lib/python3.6/shutil.py", line 983, in unpack_archive func(filename, extract_dir, *kwargs) File "/usr/lib/python3.6/shutil.py", line 883, in _unpack_zipfile raise ReadError("%s is not a zip file" % filename) shutil.ReadError: lang-mod.zip is not a zip file Exception ignored in: <object repr() failed> Traceback (most recent call last): File "/var/www/llp/Prosodylab-Aligner-master/Prosodylab-Aligner-master/aligner/archive.py", line 88, in del* if self.is_tmpdir: AttributeError: 'Archive' object has no attribute 'is_tmpdir'

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prosodylab/Prosodylab-Aligner/issues/85#issuecomment-682074208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABG4OJVEFBL2WDOBQIWEL3SC2GWBANCNFSM4P7E4DQA .