因近期音乐项目需要用到音乐解析,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
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=7158
https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6597
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7300
https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6585
http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5476
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7281
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7277
https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5045
https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6866
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7277
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7279
https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=7122
http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4787
https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=7108
http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4789
https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6842
https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=7102
http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5450
http://toyota-porte.ru/forums/index.php?autocom=gallery&req=si&img=3355
https://mazda-demio.ru/forums/index.php?autocom=gallery&req=si&img=6569
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7256
https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6834
http://terios2.ru/forums/index.php?autocom=gallery&req=si&img=4764
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7264
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7243
https://vitz.ru/forums/index.php?autocom=gallery&req=si&img=5011
https://hrv-club.ru/forums/index.php?autocom=gallery&req=si&img=7085
https://honda-fit.ru/forums/index.php?autocom=gallery&req=si&img=7238
https://myteana.ru/forums/index.php?autocom=gallery&req=si&img=6835
http://wish-club.ru/forums/index.php?autocom=gallery&req=si&img=5422