优化c3上的内存使用

This commit is contained in:
Terrence
2025-02-18 03:05:00 +08:00
parent 93915cd624
commit ade1e3193d
5 changed files with 30 additions and 25 deletions

View File

@@ -56,7 +56,7 @@ public:
bool IsVoiceDetected() const { return voice_detected_; }
void Schedule(std::function<void()> callback);
void SetDeviceState(DeviceState state);
void Alert(const std::string& status, const std::string& message, const std::string& emotion = "", const std::string& sound = "");
void Alert(const std::string& status, const std::string& message, const std::string& emotion = "", const std::string_view& sound = "");
void AbortSpeaking(AbortReason reason);
void ToggleChatState();
void StartListening();