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
464033  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://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7080

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    2个月前
    回复
  • Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/lv/register-person?ref=B4EPR6J0

    2个月前
    回复
  • http://rkiyosaki.ru/discussion/12710/the-beach-boys-legendy-amerikanskoy-rokmuzyki/

    2个月前
    回复
  • https://forum.mulegendreload.net/index.php?/gallery/image/494-13/

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

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

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

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

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

    2个月前
    回复
  • http://fabnews.ru/blog/8434.html

    2个月前
    回复
  • https://halopro.net/gallery/image/751-14/

    2个月前
    回复
  • https://www.nn.ru/user.php?user_id=1472813&page=blog&blog_id=3642203

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

    2个月前
    回复
1 … 124 125 126 127 128 … 177
流逝中沉沦
12文章 50940评论 1470点赞 4192967浏览

随机文章
美和易思app协议分析及功能实现(美和易思刷课)
5年前
QQWeb登陆P值算法
5年前
YY模拟操作
5年前
SinKingPHP个人MVC框架
5年前
QQ全套扫码加速
5年前
最新评论
+376
网站留言
Copyright © 2025 网站备案号: 皖ICP备18022767号-3
沉沦云网络. SinKingCloud
主页
页面
  • 个人技术栈
  • 留言
博主
流逝中沉沦
流逝中沉沦 管理员
一个热爱生活热爱技术的00后少年
12 文章 50940 评论 4192967 浏览
测试
测试
赞赏作者

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

感谢您对作者的支持!

 支付宝 微信支付