logo
0
1
Login

小智XiaoZhiSharp Client

Release License: MIT Stars Download

项目简介

XiaoZhiSharp 是使用 C# 语言编写的 “XiaoZhi SDK”,并提供了ConsoleApp 应用。

示例

using XiaoZhiSharp; XiaoZhiAgent agent = new XiaoZhiAgent(); agent.Token = configuration["CozeSettings:Token"]; agent.BotId = configuration["CozeSettings:BotId"]; agent.UserId = configuration["CozeSettings:UserId"]; agent.OnMessageEvent += Agent_OnMessageEvent; await agent.Start(); private static Task Agent_OnMessageEvent(string type, string message) { LogConsole.InfoLine($"[{type}] {message}"); return Task.CompletedTask; }

详见 XiaoZhiSharp_ConsoleApp 项目。

NuGet

dotnet add package XiaoZhiSharp --version 1.0.1

相关资源

https://opus-codec.org/downloads/

贡献与反馈

如果你在使用过程中发现了项目中的问题,或者有任何改进的建议,欢迎随时提交 Issue 或者 Pull Request。你的反馈和贡献将对项目的发展和完善起到重要的作用。

加入社群

欢迎加入我们的社区,分享经验、提出建议或获取帮助!

About

No description, topics, or website provided.
Language
C#69.8%
XAML9.7%
CSS7.4%
Razor6.1%
Others7%