k2-fsa / sherpa

Speech-to-text server framework with next-gen Kaldi
https://k2-fsa.github.io/sherpa
Apache License 2.0
521 stars 105 forks source link

install new version of sherpa #356

Closed alidabaghi123 closed 1 year ago

alidabaghi123 commented 1 year ago

hello. i am trying to install new version of sherpa and occurance this error? Screenshot from 2023-04-03 14-01-34

csukuangfj commented 1 year ago

@alidabaghi Could you try the latest master?

It should have been fixed by https://github.com/k2-fsa/sherpa/pull/355

alidabaghi123 commented 1 year ago

i am recloning in master and occurance this error new? Screenshot from 2023-04-03 15-19-59

alidabaghi123 commented 1 year ago

Can you help me?

csukuangfj commented 1 year ago

Could you please show the output of the following command

make VERBOSE=1

alidabaghi123 commented 1 year ago

Screenshot from 2023-04-03 15-43-05

alidabaghi123 commented 1 year ago

fig above

alidabaghi123 commented 1 year ago

can you help me again?

csukuangfj commented 1 year ago

@alidabaghi Sorry, I cannot reproduce your issue.

As a workaround, could you change https://github.com/k2-fsa/sherpa/blob/a04ed8454ccab5284aef1306efccc397f8f20341/sherpa/cpp_api/bin/CMakeLists.txt#L2 to

target_link_libraries(sherpa-offline sherpa_cpp_api -pthread)

and re-try?

alidabaghi123 commented 1 year ago

Thank you so much for your help and support. I really appreciate it.

csukuangfj commented 1 year ago

Does it fix your issue?

alidabaghi123 commented 1 year ago

yes. My goal is to add a zipformer model for this code. https://github.com/k2-fsa/sherpa/blob/master/sherpa/bin/streaming_pruned_transducer_statelessX/streaming_server.py

alidabaghi123 commented 1 year ago

excuse me. i am trying add zipformer model to sherpa for test in front. Can I do this?

csukuangfj commented 1 year ago

Yes, absolutely you can do it.

csukuangfj commented 1 year ago

excuse me. i am trying add zipformer model to sherpa for test in front. Can I do this?

Please post any issues if you have.

csukuangfj commented 1 year ago

excuse me. i am trying add zipformer model to sherpa for test in front. Can I do this?

@alidabaghi Please see https://github.com/k2-fsa/sherpa/pull/365