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
436326  1191 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,296)

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

欢迎您 游客  

  • https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=7116

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    4周前
    回复
1 … 162 163 164 165 166 … 177
流逝中沉沦
12文章 50913评论 1470点赞 4050248浏览

随机文章
YY模拟操作
5年前
SinKingMusic免费开放使用
5年前
c#模拟QQ空间访问
5年前
归来仍是少年
5年前
QQWeb登陆P值算法
5年前
最新评论
+376
网站留言
Copyright © 2025 网站备案号: 皖ICP备18022767号-3
沉沦云网络. SinKingCloud
主页
页面
  • 个人技术栈
  • 留言
博主
流逝中沉沦
流逝中沉沦 管理员
一个热爱生活热爱技术的00后少年
12 文章 50913 评论 4050248 浏览
测试
测试

主题风格 设置选项


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

“扫一扫”分享到微信

赞赏作者

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

感谢您对作者的支持!

 支付宝 微信支付