vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

Add aligner

Open vadimdddd opened this issue 2 years ago • 9 comments

Aligner is a program for aligning words in time relative to other words in audio file. Gentle project used m3.cc and k3.cc as language and acoustic models for alignment, these approaches were reworked into aligner, which made it possible to use different language models and accelerated the alignment process. Also in setup.py was added ability to run the aligner not only from the folder with it was added.

How to work:

  1. You have to download any language model
  2. You have to prepare .wav and .txt files
  3. When starting the program, you have to specify the required arguments: a) path to the wavfile; b) path to the textfile; c) path to the language model.

Example(how to run): python3 vosk_align.py example/glorious.wav example/glorious.txt example/model

vadimdddd avatar Nov 09 '21 16:11 vadimdddd

I'm also waiting for the tests for the aligner so we can automatically verify the code

nshmyrev avatar Nov 09 '21 16:11 nshmyrev

In testing this locally, there needs to be an empty __init__.py file at python/vosk/aligner/__init__.py, otherwise I would get ModuleNotFoundError: No module named 'vosk.aligner' when trying to run vosk-aligner or vosk_align.py.

ryanfb avatar Jun 30 '22 15:06 ryanfb

@ryanfb thx for the info. I will fix it.

vadimdddd avatar Jun 30 '22 17:06 vadimdddd

I'm really interested in this PR, is there anything I can do to help?

Laurian avatar Jan 23 '23 06:01 Laurian

@Laurian just ping me if I forget please, I'll try to merge it

nshmyrev avatar Jan 25 '23 22:01 nshmyrev

@Laurian just ping me if I forget please, I'll try to merge it

I am also very interested in this as well. What can I do to help?

CodeFusionFX avatar Feb 06 '23 05:02 CodeFusionFX

@nshmyrev ping 🙏

Laurian avatar Mar 30 '23 18:03 Laurian

@nshmyrev Ping hoping this get merged. Anxiously excited for this merge since last year what can the community do to help?

CodeFusionFX avatar Apr 10 '23 04:04 CodeFusionFX

@nshmyrev Really hoping this can get merged.

finnnnnnnnnnnnnnnnn avatar Sep 07 '23 19:09 finnnnnnnnnnnnnnnnn