k2-fsa / sherpa

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

[Feature request] C++ api support maybe with c++20 coroutine enabled #101

Open npuichigo opened 1 year ago

csukuangfj commented 1 year ago

@npuichigo We have an ongoing PR #99 , almost finished, about C++ APIs for non-streaming ASR. The streaming part is still under development.

You can find an example usage by visiting https://github.com/k2-fsa/sherpa-torch-cpp-makefile-example


maybe with c++20 coroutine enabled

C++20 corountine is useful for network communications. Would you like to contribute? Supporting network communication from the C++ side is not our focus right now.

npuichigo commented 1 year ago

Maybe I would like to contribute that after p2300 is ready or the reference implementation is stable.

csukuangfj commented 1 year ago

@npuichigo

Do you have an interest in using https://github.com/chriskohlhoff/asio with c++20 coroutine?

It may take years to get the above proposal accepted by the c++ standard.

npuichigo commented 1 year ago

@csukuangfj Asio is a good choice for seamlessly using c++20 coroutine currently. But I'm not quite familiar with it and may need some time.

BTW, the proposal to merge asio into c++ standard is replaced with std::execution I mentioned above. (https://github.com/cplusplus/papers/issues/1054#issuecomment-958980374) & (https://github.com/cplusplus/papers/issues/1054#issuecomment-1068129163)