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.
51 lines
1.2 KiB
51 lines
1.2 KiB
//
|
|
// Created by zwsd
|
|
//
|
|
|
|
#pragma once
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "iflytopcpp/core/spdlogfactory/logger.hpp"
|
|
#include "iflytopcpp/core/thread/thread.hpp"
|
|
#include "service/voiceprocess/audio_recoder_service.hpp"
|
|
#include "service/voiceprocess/beforeasr_voiceprocesser.hpp"
|
|
#include "service/voiceprocess/beforewakeup_voiceprocesser.hpp"
|
|
#include "service/voiceprocess/wakeup_processer.hpp"
|
|
|
|
/**
|
|
* @brief
|
|
*
|
|
* service: VoiceProcessService
|
|
*
|
|
* 监听事件:
|
|
* 依赖状态:
|
|
* 依赖服务:
|
|
* 作用:
|
|
*
|
|
*/
|
|
|
|
namespace iflytop {
|
|
using namespace std;
|
|
using namespace core;
|
|
class VoiceProcessService : public enable_shared_from_this<VoiceProcessService> {
|
|
ENABLE_LOGGER(VoiceProcessService);
|
|
|
|
shared_ptr<BeforeWakeupVoiceProcesser> m_beforeWakeupVoiceProcesser;
|
|
shared_ptr<BeforeasrVoiceProcesser> m_beforeasrVoiceProcesser;
|
|
shared_ptr<WakeupProcesser> m_wakeupProcesser;
|
|
shared_ptr<AudioRecoderService> m_audioRecoderService;
|
|
|
|
public:
|
|
VoiceProcessService(){};
|
|
|
|
void initialize();
|
|
};
|
|
} // namespace iflytop
|