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
436458  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://4division.ru/viewtopic.php?f=13&t=6796

    1年前
    回复
  • https://zdsim.ru/wiki/index.php/%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F_%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%B0_mp3

    1年前
    回复
  • https://online-raduga.ru/forum/user/6044/

    1年前
    回复
  • https://zooclub.kamrbb.ru/?x=read&razdel=42&tema=400&start=0#new

    1年前
    回复
  • https://www.club4x4.ru/forum/viewtopic.php?f=17&t=95875

    1年前
    回复
  • https://ratingforex.ru/forum-forex/viewtopic.php?f=17&t=32514&sid=025c3827557bdbb5979f3c1d2163fd19

    1年前
    回复
  • https://wifidb.science/wiki/User:ChauBarksdale7

    1年前
    回复
  • https://reveal.ru/gate.html?name=Journal&file=display&jid=51200

    1年前
    回复
  • https://forum.zhcash.net/index.php?/gallery/image/30-%D0%B8%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F-%D0%B0%D1%83%D0%B4%D0%B8%D0%BE%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%BE%D0%B2-%D0%BE%D1%82-%D0%B2%D0%B8%D0%BD%D0%B8%D0%BB%D0%B0-%D0%B4%D0%BE-%D1%81%D1%82%D1%80%D0%B8%D0%BC%D0%B8%D0%BD%D0%B3%D0%B0/

    1年前
    回复
  • http://www.sec31.ru/viewtopic.php?f=15&t=582134

    1年前
    回复
  • http://rak.flyboard.ru/viewtopic.php?f=8&t=20228

    1年前
    回复
  • https://villagewebcompany.net/index.php/User:ShoshanaDowdell

    1年前
    回复
  • http://bondpedia.altervista.org/index.php?title=Mp3gid.co

    1年前
    回复
  • http://b96052v5.beget.tech/2024/01/20/istoriya-formata-mp3.html

    1年前
    回复
  • http://www.pandora.ukrbb.net/viewtopic.php?f=2&t=6624

    1年前
    回复
  • http://www.detiseti.ru/modules/newbb_plus/viewtopic.php?topic_id=64699&post_id=237805&order=0&viewmode=flat&pid=0&forum=13#237805

    1年前
    回复
  • http://forestsnakes.teamforum.ru/viewtopic.php?f=28&t=2029

    1年前
    回复
  • https://www.thenootropicswiki.com/wiki/Mp3bit.pw

    1年前
    回复
  • https://chelyabinsk.eurooptic.ru/about/forum/user/16030/

    1年前
    回复
  • http://all-smeta.ru/forum/viewtopic.php?f=2&t=4025

    1年前
    回复
  • https://visit.glassen-it.com/summerspb/blogs/1/istoriya-formata-mp3.php

    1年前
    回复
  • http://skodarapidclub.ru/forum/showthread.php?p=1585230#post1585230

    1年前
    回复
  • https://implementationmatters.org/index.php?title=User:CandaceBarreto7

    1年前
    回复
  • https://www.ocamlwiki.com/wiki/Mp3gid.co

    1年前
    回复
  • https://salda.ws/f/topic.php?f=4&t=64391

    1年前
    回复
  • http://psylab.flybb.ru/viewtopic.php?f=95&t=4813

    1年前
    回复
  • http://building.ixbb.ru/viewtopic.php?id=3056#p5099

    1年前
    回复
  • https://salda.ws/f/topic.php?f=16&t=64369

    1年前
    回复
  • https://mediawiki.volunteersguild.org/index.php?title=Mp3bit.pw_2

    1年前
    回复
  • Музыка В Машину 2024 – Beebars – Candy Shop скачать песню бесплатно на телефон и слушать онлайн в mp3
    Музыка В Машину 2024 – Beebars – Candy Shop

    1年前
    回复
1 … 12 13 14 15 16 … 177
流逝中沉沦
12文章 50924评论 1470点赞 4054243浏览

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

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

感谢您对作者的支持!

 支付宝 微信支付