Project description
a13e
一个简单且可扩展的听歌识曲包,目前仅支持网易云音乐chromium插件API
快速使用
pip install a13e
a13e -h
作为python模块使用
from pathlib import Path
import a13e
audio_fp = Path('aaa.mp3')
a13e.recognize(audio_fp) #调用所有的识别器并返回结果
result = a13e.random_recognize(audio_fp) # 调用所有的识别器并随机返回一个结果
a13e.set_tag(audio_fp, result) # 将返回的结果设置为MP3标签
编写识别器
myproject
│ main.py #程序入口
│
└─plugins
__init__.py #必须
new_recognizer.py
#myproject/main.py
from importlib import import_module
from a13e.plugin import PluginRegister
PluginRegister(import_module('plugins'))
#myproject/plugins/new_recognizer.py
from a13e.plugin import PluginRegister
from a13e.recognizer import BaseRecognizer
@PluginRegister.register
class NewRecognizer(BaseRecognizer):
...
目前支持的平台
平台 |
识别器名称 |
额外参数 |
描述 |
网易云音乐 |
NeteaseCloudMusic |
没有 |
本API来自网易云音乐听歌识曲插件 |
参考
https://github.com/akinazuki/NeteaseCloudMusic-Audio-Recognize
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file a13e-0.0.1.tar.gz
.
File metadata
-
Download URL:
a13e-0.0.1.tar.gz
- Upload date:
- Size: 48.7 MB
- Tags: Source
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Hashes for a13e-0.0.1.tar.gz
Algorithm |
Hash digest |
|
SHA256 |
2b76e6c47fbf8158367912cc9cc1612f388bc7b381efb700e470ca5fd3f98f15 |
|
MD5 |
e6fb49140a69bb3726d96f8aaac66474 |
|
BLAKE2b-256 |
a30d18434630a3903066d782d3320b0c4a4b42db49de5f0b511fbc7cc71dade2 |
|
See more details on using hashes here.
File details
Details for the file a13e-0.0.1-py3-none-any.whl
.
File metadata
-
Download URL:
a13e-0.0.1-py3-none-any.whl
- Upload date:
- Size: 49.0 MB
- Tags: Python 3
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Hashes for a13e-0.0.1-py3-none-any.whl
Algorithm |
Hash digest |
|
SHA256 |
ce4c2e9a6be92c098e43d48e997f1a510409a473a384b7384bd4f77007cb6e3a |
|
MD5 |
9d0e708d9d938d57a1022239c2ebbaad |
|
BLAKE2b-256 |
54ad9fc6cab4f139010e06e754d8bb8a4e9e9f65abf5aa57f5c17e8cdeeb6dae |
|
See more details on using hashes here.