User-Profile-Image
hankin
  • 5
  • 首页
  • 留言
  • 仓库
  • 云端
  • 分类
    • 随笔
    • 安卓逆向
    • php
    • node.js
    • C#
  • 页面
    • 个人技术栈
    • 留言
  • 友链
    • 沉沦云API
    • 沉沦云端
    • SinKingMusic
    • 美和易思刷课
    • 神奇的七云
    • khaos编程小站
    • 小九实验室
    • 一叶三秋
    • 青年的故事
    • :李白云博客
    • 噜阿噜-资源站
    • 小k
Help?

Please contact us on our email for need any support

Support
    首页   ›   C#   ›   正文
C#

c#音乐解析组件(dll)

2020-05-20 09:50:04
436932  1195 22

因近期音乐项目需要用到音乐解析,c#音乐解析资源较少,便自己写了一个,支持酷狗音乐、网易云音乐、QQ音乐、咪咕音乐歌曲信息解析及搜索等,使用.net core编写,支持macos linux win等平台

使用方法

1.导入DLL

下载地址GitHub
导入SinKingMusicSnalysis项目中的程序SinKingMusicSnalysis.dll即可

2.导入命名空间
using SinKingMusicSnalysis;
3.引用方法
using System;
using SinKingMusicSnalysis;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            //搜索
            List<MusicInfo> list = KuGou.Search("salt", 1, 1,true);//KuGou,QQ,NetEase
            foreach (var item in list)
            {
                Console.WriteLine(item.SongName);
                Console.WriteLine(item.SingerName);
                Console.WriteLine(item.SongID);
                Console.WriteLine(item.Url);
                Console.WriteLine(item.Logo);
                Console.WriteLine(item.AlbumName);
                Console.WriteLine(item.SongID);
                Console.WriteLine(item.Lrc);
                Console.WriteLine("\n");
            }
            //单曲信息
            MusicInfo info =  QQ.Song("001Xtqd62Iqwvj",true);//KuGou,QQ,NetEase
            Console.WriteLine(info.SongName);
            Console.WriteLine(info.SingerName);
            Console.WriteLine(info.SongID);
            Console.WriteLine(info.Url);
            Console.WriteLine(info.Logo);
            Console.WriteLine(info.AlbumName);
            Console.WriteLine(info.Lrc);
            Console.WriteLine(info.Link);
            Console.WriteLine("\n");
            //获取歌词
            Console.WriteLine(QQ.Lrc("001Xtqd62Iqwvj"));//KuGou,QQ,NetEase
        }

    }
}

如本文“对您有用”,欢迎随意打赏作者,让我们坚持创作!

22 打赏
评论 (5,300)

回复给 点击这里取消回复。

欢迎您 游客  

  • http://toyota-porte.ru/forums/index.php?autocom=gallery&req=si&img=3268

    1个月前
    回复
  • http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4616

    1个月前
    回复
  • https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=6938

    1个月前
    回复
  • https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6400

    1个月前
    回复
  • https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7086

    1个月前
    回复
  • https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6382

    1个月前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=4856

    1个月前
    回复
  • https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6385

    1个月前
    回复
  • http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4588

    1个月前
    回复
  • https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7081

    1个月前
    回复
  • https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6378

    1个月前
    回复
  • https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7077

    1个月前
    回复
  • https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6377

    1个月前
    回复
  • https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7065

    1个月前
    回复
  • http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4587

    1个月前
    回复
  • https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=6915

    1个月前
    回复
  • https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6647

    1个月前
    回复
  • http://passo.su/forums/index.php?autocom=gallery&req=si&img=4261

    1个月前
    回复
  • http://toyota-porte.ru/forums/index.php?autocom=gallery&req=si&img=3250

    1个月前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=4836

    1个月前
    回复
  • http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5259

    1个月前
    回复
  • http://toyota-porte.ru/forums/index.php?autocom=gallery&req=si&img=3249

    1个月前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=4835

    1个月前
    回复
  • http://toyota-porte.ru/forums/index.php?autocom=gallery&req=si&img=3251

    1个月前
    回复
  • http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5253

    1个月前
    回复
  • http://toyota-porte.ru/forums/index.php?autocom=gallery&req=si&img=3245

    1个月前
    回复
  • http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4571

    1个月前
    回复
  • https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7055

    1个月前
    回复
  • http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4561

    1个月前
    回复
  • http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4563

    1个月前
    回复
1 … 155 156 157 158 159 … 177
流逝中沉沦
12文章 50928评论 1470点赞 4062749浏览

随机文章
c#模拟QQ空间访问
5年前
c#音乐解析组件(dll)
5年前
SinKingMusic免费开放使用
5年前
安卓QQ协议登陆示例(c#)
5年前
SinKingPHP个人MVC框架
5年前
最新评论
+376
网站留言
Copyright © 2025 网站备案号: 皖ICP备18022767号-3
沉沦云网络. SinKingCloud
主页
页面
  • 个人技术栈
  • 留言
博主
流逝中沉沦
流逝中沉沦 管理员
一个热爱生活热爱技术的00后少年
12 文章 50928 评论 4062749 浏览
测试
测试
赞赏作者

请通过微信、支付宝 APP 扫一扫

感谢您对作者的支持!

 支付宝 微信支付