补充文件
authorp15692025051 <846603105@qq.com>
Tue, 11 Mar 2025 09:44:13 +0000 (17:44 +0800)
committerp15692025051 <846603105@qq.com>
Tue, 11 Mar 2025 09:44:13 +0000 (17:44 +0800)
2.sdk/Helios_SDK/system/helios_ai/helios_ai.h [new file with mode: 0644]
2.sdk/Helios_SDK/system/helios_ai/helios_ai.mk [new file with mode: 0644]

diff --git a/2.sdk/Helios_SDK/system/helios_ai/helios_ai.h b/2.sdk/Helios_SDK/system/helios_ai/helios_ai.h
new file mode 100644 (file)
index 0000000..63c63ea
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) Quectel Wireless Solution, Co., Ltd.All Rights Reserved.
+ *  
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *  
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#ifndef _HELIOS_AI_H_
+#define _HELIOS_AI_H_
+
+enum {
+    HELIOS_AI_EVENT_START = 1,
+    HELIOS_AI_EVENT_STOP = 2,
+    HELIOS_AI_EVENT_TTS_TEXT = 3,
+    HELIOS_AI_EVENT_ASR_TEXT = 4,
+    HELIOS_AI_EVENT_ERROR = 5,
+} HELIOS_AI_EVENT;
+
+typedef void (*Helios_AI_Callback)(int evt, char *msg);
+
+typedef struct  {
+       char StartVoiceChat[256];
+       char UpdateVoiceChat[256];
+       char StopVoiceChat[256];
+       char BotId[256];
+       char VoiceId[256];
+       int volume;
+       Helios_AI_Callback callback;
+       int AliveTime;
+} helios_ai_config;
+
+
+int helios_ai_init(Helios_AI_Callback callback, int alive_time);
+
+int helios_ai_start(void);
+int helios_ai_stop(void);
+
+int helios_ai_status(void);
+
+int helios_ai_set_start_voice_chat(char *url);
+int helios_ai_set_update_voice_chat(char *url);
+int helios_ai_set_stop_voice_chat(char *url);
+int helios_ai_set_bot_id(char *bot_id);
+int helios_ai_set_voice_id(char *voice_id);
+
+int helios_ai_set_volume(int volume);
+int helios_ai_get_volume(void);
+
+int helios_ai_interrupt(void);
+
+#endif
+
diff --git a/2.sdk/Helios_SDK/system/helios_ai/helios_ai.mk b/2.sdk/Helios_SDK/system/helios_ai/helios_ai.mk
new file mode 100644 (file)
index 0000000..c521d27
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright (c) Quectel Wireless Solution, Co., Ltd.All Rights Reserved.
+#  
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#  
+#     http://www.apache.org/licenses/LICENSE-2.0
+#  
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+NAME = AI_RTC
+
+GLOBAL_INCS = .
+
+$(NAME)_SRCS = 
+