You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

2 years ago
2 years ago
  1. //
  2. // Created by zwsd
  3. //
  4. #pragma once
  5. #include <fstream>
  6. #include <iostream>
  7. #include <list>
  8. #include <map>
  9. #include <memory>
  10. #include <set>
  11. #include <sstream>
  12. #include <string>
  13. #include <vector>
  14. #include "iflytopcpp/core/spdlogfactory/logger.hpp"
  15. #include "iflytopcpp/core/thread/thread.hpp"
  16. #include "service/voiceprocess/audio_recoder_service.hpp"
  17. #include "service/voiceprocess/beforeasr_voiceprocesser.hpp"
  18. #include "service/voiceprocess/beforewakeup_voiceprocesser.hpp"
  19. #include "service/voiceprocess/wakeup_processer.hpp"
  20. /**
  21. * @brief
  22. *
  23. * service: VoiceProcessService
  24. *
  25. * :
  26. * :
  27. * :
  28. * :
  29. *
  30. */
  31. namespace iflytop {
  32. using namespace std;
  33. using namespace core;
  34. class VoiceProcessService : public enable_shared_from_this<VoiceProcessService> {
  35. ENABLE_LOGGER(VoiceProcessService);
  36. shared_ptr<BeforeWakeupVoiceProcesser> m_beforeWakeupVoiceProcesser;
  37. shared_ptr<BeforeasrVoiceProcesser> m_beforeasrVoiceProcesser;
  38. shared_ptr<WakeupProcesser> m_wakeupProcesser;
  39. shared_ptr<AudioRecoderService> m_audioRecoderService;
  40. public:
  41. VoiceProcessService(){};
  42. void initialize();
  43. };
  44. } // namespace iflytop