diff --git a/VideoAnalysis/Expand/AuthorizeExpand.cs b/VideoAnalysis/Expand/AuthorizeExpand.cs index b2e1b54..c78ab9f 100644 --- a/VideoAnalysis/Expand/AuthorizeExpand.cs +++ b/VideoAnalysis/Expand/AuthorizeExpand.cs @@ -10,6 +10,11 @@ namespace Learn.VideoAnalysis.Expand { public static class AuthorizeExpand { + /// + /// 框架API授权 + /// + /// + /// public static IServiceCollection AddPermissionAuthentication(this IServiceCollection services) { services.AddAuthentication() diff --git a/VideoAnalysis/Program.cs b/VideoAnalysis/Program.cs index a383bad..f537f54 100644 --- a/VideoAnalysis/Program.cs +++ b/VideoAnalysis/Program.cs @@ -46,18 +46,20 @@ namespace Learn.VideoAnalysis builder.Services.AddPermissionAuthentication(); builder.Services.AddSqlSugarExpand(); builder.Services.AddRedisExpand(); - + // builder.Services.AddSimpleTexOcrClient(); builder.Services.AddDownloadFileExpand(); builder.Services.AddFFMPGEExpand(); builder.Services.AddAlibabaCloudVod(); builder.Services.AddAliyunOSS(); + //תд builder.Services.AddSenseVoiceExpand(); + builder.Services.AddFunASRNanoExpand(); builder.Services.AddSherpaVadExpand(); //builder.Services.AddSpeakerAI(); + //ʱ builder.Services.AddCoravel(); - //SenseVoice.Init(); //쳣 builder.Services.AddControllersWithViews(options => { diff --git a/VideoAnalysisCore/AICore/FFMPGE/FFMPGEHandle.cs b/VideoAnalysisCore/AICore/FFMPGE/FFMPGEHandle.cs index 05344fb..f79d884 100644 --- a/VideoAnalysisCore/AICore/FFMPGE/FFMPGEHandle.cs +++ b/VideoAnalysisCore/AICore/FFMPGE/FFMPGEHandle.cs @@ -22,7 +22,7 @@ namespace VideoAnalysisCore.AICore.FFMPGE public static class FFMPGEExpand { /// - /// 添加跨域拓展 + /// 添加FFPMPEG拓展 /// /// public static void AddFFMPGEExpand(this IServiceCollection services) diff --git a/VideoAnalysisCore/Common/Expand/AliyunOSSExpand.cs b/VideoAnalysisCore/Common/Expand/AliyunOSSExpand.cs index 53470ad..aaf0f07 100644 --- a/VideoAnalysisCore/Common/Expand/AliyunOSSExpand.cs +++ b/VideoAnalysisCore/Common/Expand/AliyunOSSExpand.cs @@ -51,7 +51,7 @@ namespace VideoAnalysisCore.Common.Expand public static class AliyunOSSExpand { /// - /// 使用阿里云 vod拓展 + /// 使用阿里云 OSS拓展 /// /// /// diff --git a/VideoAnalysisCore/Common/Expand/SimpLetexExpand.cs b/VideoAnalysisCore/Common/Expand/SimpLetexExpand.cs index 5a4640a..11210a2 100644 --- a/VideoAnalysisCore/Common/Expand/SimpLetexExpand.cs +++ b/VideoAnalysisCore/Common/Expand/SimpLetexExpand.cs @@ -221,6 +221,11 @@ namespace VideoAnalysisCore.Common.Expand /// public static class SSimpLetexExtensions { + /// + /// 公式图片识别 + /// + /// + /// public static IServiceCollection AddSimpleTexOcrClient(this IServiceCollection services) { services.AddSingleton(); diff --git a/VideoAnalysisCore/Common/Expand/SqlSugarExpand.cs b/VideoAnalysisCore/Common/Expand/SqlSugarExpand.cs index 5dc972d..7942bf6 100644 --- a/VideoAnalysisCore/Common/Expand/SqlSugarExpand.cs +++ b/VideoAnalysisCore/Common/Expand/SqlSugarExpand.cs @@ -19,6 +19,10 @@ namespace VideoAnalysisCore.Common.Expand public static class SqlSugarExpand { public static bool ShowSQL = false; + /// + /// 数据库ORM拓展 + /// + /// public static void AddSqlSugarExpand(this IServiceCollection services) { diff --git a/VideoAnalysisCore/Common/RedisExpand.cs b/VideoAnalysisCore/Common/RedisExpand.cs index 15effea..3247fc4 100644 --- a/VideoAnalysisCore/Common/RedisExpand.cs +++ b/VideoAnalysisCore/Common/RedisExpand.cs @@ -88,6 +88,10 @@ namespace VideoAnalysisCore.Common Console.WriteLine($"{DateTime.Now}=>初始化 Redis任务队列"); service.AddSingleton(); } + /// + /// redis连接拓展(包含消息队列任务) + /// + /// public static void AddRedisExpand(this IServiceCollection service) { Console.WriteLine($"{DateTime.Now}=>初始化 Redis");