/** * Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights * Reserved. MIT License (https://opensource.org/licenses/MIT) */ /* 2023-2024 by zhaomingwork@qq.com */ // FUNASR_MESSAGE define the needed message between funasr engine and http server #ifndef HTTP_SERVER2_SESSIONS_HPP #define HTTP_SERVER2_SESSIONS_HPP #include "funasrruntime.h" #include "nlohmann/json.hpp" #include typedef struct { nlohmann::json msg; std::shared_ptr> samples; std::shared_ptr>> hotwords_embedding=nullptr; FUNASR_DEC_HANDLE decoder_handle=nullptr; std::atomic status; } FUNASR_MESSAGE; #endif // HTTP_SERVER2_REQUEST_PARSER_HPP