SHA256
add r1 robot project
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "r1_voice/llm.hh"
|
||||
#include "r1_voice/stt.hh"
|
||||
#include "r1_voice/tts.hh"
|
||||
|
||||
namespace r1_voice {
|
||||
|
||||
struct ConversationConfig {
|
||||
SttConfig stt;
|
||||
LlmConfig llm;
|
||||
TtsConfig tts;
|
||||
};
|
||||
|
||||
class Conversation {
|
||||
public:
|
||||
explicit Conversation(
|
||||
ConversationConfig config
|
||||
);
|
||||
|
||||
bool init(
|
||||
const std::string& network_interface
|
||||
);
|
||||
|
||||
void run();
|
||||
|
||||
private:
|
||||
ConversationConfig config_;
|
||||
|
||||
SpeechToText stt_;
|
||||
LLM llm_;
|
||||
TextToSpeech tts_;
|
||||
};
|
||||
|
||||
} // namespace r1_voice
|
||||
Reference in New Issue
Block a user