Skip to content

Building failed with error: 'WordAlignLatticePartial' was not declared in this scope #1082

@hbasafa

Description

@hbasafa

Hi, I was trying to build vosk-api docker image using this docker file from vosk-server.

After building the kaldi image, it tries to build vosk-api, and then uses the vosk-server to serve the models. The vosk-api modules are build by running the following command:

    git clone https://github.com/alphacep/vosk-api /opt/vosk-api \
    && cd /opt/vosk-api/src \
    && KALDI_MKL=$KALDI_MKL KALDI_ROOT=/opt/kaldi make -j $(nproc) \
    && cd /opt/vosk-api/python \
    && python3 ./setup.py install 

which is noted here.

This line failed with error:

recognizer.cc: In member function 'const char* Recognizer::PartialResult()': 
recognizer.cc:752:13: error: 'WordAlignLatticePartial' was not declared in this scope 
                        WordAlignLatticePartial(clat, *model_->trans_model_, *model_->winfo_, 0, &aligned_lat); 
                         ^~~~~~~~~~~~~~~~~~~~~~~ 
make: *** [Makefile:112: recognizer.o] Error 1 
make: *** Waiting for unfinished jobs....

I have review the file: recognizer.cc and it's true; there is no definition for the function WordAlignLatticePartial.

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions