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
476735  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)

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

欢迎您 游客  

  • https://berforum.ru/gallery/image/8946-15/

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

    2个月前
    回复
  • https://bezmotora72.ru/club/user/4883/blog/9598/

    2个月前
    回复
  • https://datasphere.ru/club/user/120/blog/6608/

    2个月前
    回复
  • https://www.noo.by/wiki/Backstreet_Boys:%D0%9A%D0%BE%D1%80%D0%BE%D0%BB%D0%B8%D0%B1%D0%BE%D0%B9-%D0%B1%D1%8D%D0%BD%D0%B4%D0%BE%D0%B2

    2个月前
    回复
  • https://www.noo.by/wiki/Backstreet_Boys:%D0%9A%D0%BE%D1%80%D0%BE%D0%BB%D0%B8%D0%B1%D0%BE%D0%B9-%D0%B1%D1%8D%D0%BD%D0%B4%D0%BE%D0%B2

    2个月前
    回复
  • http://www.santa4.su/gallery/image/620-3/

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

    2个月前
    回复
  • https://telegra.ph/Istoriya-formata-MP3–revolyuciya-v-mire-cifrovoj-muzyki-03-13

    2个月前
    回复
  • https://www.fromrus.su/index.php?/gallery/image/494-11/

    2个月前
    回复
  • https://telegra.ph/Istoriya-formata-MP3–revolyuciya-v-mire-cifrovoj-muzyki-03-13

    2个月前
    回复
  • http://www.vocal.com.ua/node/65966

    2个月前
    回复
  • https://telegra.ph/Istoriya-formata-MP3–revolyuciya-v-mire-cifrovoj-muzyki-03-13

    2个月前
    回复
  • http://www.santa4.su/gallery/image/620-3/

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

    2个月前
    回复
  • https://flerus-shop.hcp.dilhost.ru/club/user/73/blog/359/

    2个月前
    回复
  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

    2个月前
    回复
  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/fr/register-person?ref=GJY4VW8W

    2个月前
    回复
  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.com/vi/register-person?ref=WTOZ531Y

    2个月前
    回复
  • Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

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

    3个月前
    回复
  • BusinessIraq.com maintains thorough coverage of Iraq’s construction and infrastructure sectors, monitoring major development projects, government tenders, and private sector initiatives. Our platform tracks urban development, transportation projects, and real estate trends, offering valuable intelligence for industry stakeholders.

    3个月前
    回复
  • Collaborating with local businesses can extend your reach and reduce risks Iraq Business News offers articles that discuss partnership strategies and success stories from the region

    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个月前
    回复
  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

    3个月前
    回复
  • zKyjKZuNrRE

    3个月前
    回复
  • bXmhXKzeo8p

    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个月前
    回复
  • Your article helped me a lot, is there any more related content? Thanks!

    3个月前
    回复
1 … 117 118 119 120 121 … 177
流逝中沉沦
12文章 50942评论 1470点赞 4263487浏览

随机文章
YY模拟操作
5年前
SinKingMusic免费开放使用
5年前
c#通过句柄进行模拟操作
5年前
归来仍是少年
5年前
安卓QQ协议登陆示例(c#)
5年前
最新评论
+376
网站留言
Copyright © 2025 网站备案号: 皖ICP备18022767号-3
沉沦云网络. SinKingCloud
主页
页面
  • 个人技术栈
  • 留言
博主
流逝中沉沦
流逝中沉沦 管理员
一个热爱生活热爱技术的00后少年
12 文章 50942 评论 4263487 浏览
测试
测试
赞赏作者

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

感谢您对作者的支持!

 支付宝 微信支付