依赖包
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="6.0.13" />
使用方式
注入services.AddHttpClient<XunFeiAudioService>();
XunFeiAudioService.cs
using System;using System.Collections.Generic;using System.IO;using System.Linq;using .Http;using System.Text;using System.Text.Json;using System.Threading;using System.Threading.Tasks;namespace Tool.Services{public class XunFeiAudioService{private readonly string LFASR_HOST = "/api";/*** TODO 设置appid和secret_key*/private readonly string APPID = "";private readonly string SECRET_KEY = "";private readonly string PREPARE = "/prepare";private readonly string UP
如果觉得《C# /.NET6 实现语音转文字(科大讯飞语音转文字接口)》对你有帮助,请点赞、收藏,并留下你的观点哦!