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
436266  1189 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
        }

    }
}

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43

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

22 打赏
评论 (5,294)

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

欢迎您 游客  

  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    3周前
    回复
  • http://passo.su/forums/index.php?autocom=gallery&req=si&img=4263

    3周前
    回复
  • https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7078

    3周前
    回复
  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    3周前
    回复
  • http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5252

    3周前
    回复
  • https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=6904

    3周前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5110

    3周前
    回复
  • https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6635

    3周前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=4985

    3周前
    回复
  • https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6785

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

    3周前
    回复
  • http://toyota-porte.ru/forums/index.php?autocom=gallery&req=si&img=3257

    3周前
    回复
  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    3周前
    回复
  • I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

    3周前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5080

    4周前
    回复
  • https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=7160

    4周前
    回复
  • http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5487

    4周前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5059

    4周前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5060

    4周前
    回复
  • http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4791

    4周前
    回复
  • https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7289

    4周前
    回复
  • https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6580

    4周前
    回复
  • http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5454

    4周前
    回复
  • http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5459

    4周前
    回复
  • https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6852

    4周前
    回复
  • https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6834

    4周前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5040

    4周前
    回复
  • https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6844

    4周前
    回复
  • https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5014

    4周前
    回复
  • http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5451

    4周前
    回复
1 … 173 174 175 176 177
流逝中沉沦
12文章 50895评论 1470点赞 4047590浏览

随机文章
SinKingPHP个人MVC框架
5年前
SinKingMusic免费开放使用
5年前
c#通过句柄进行模拟操作
5年前
美和易思app协议分析及功能实现(美和易思刷课)
5年前
c#模拟QQ空间访问
5年前
最新评论
+376
网站留言
Copyright © 2025 网站备案号: 皖ICP备18022767号-3
沉沦云网络. SinKingCloud
主页
页面
  • 个人技术栈
  • 留言
博主
流逝中沉沦
流逝中沉沦 管理员
一个热爱生活热爱技术的00后少年
12 文章 50895 评论 4047590 浏览
测试
测试

主题风格 设置选项


布局
背景颜色
背景渐变
背景图片
微信 QQ空间 QQ好友 新浪微博

“扫一扫”分享到微信

赞赏作者

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

感谢您对作者的支持!

 支付宝 微信支付