bliss-audio-0.1.7
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bliss-audio-0.1.7 |
| نام | bliss-audio |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Polochon-street <polochonstreet@gmx.fr> |
| ایمیل نویسنده | Polochon-street <polochonstreet@gmx.fr> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/bliss-audio/ |
| مجوز | - |
Python bindings for [bliss-rs](https://github.com/Polochon-street/bliss/tree/master/bliss-rs).
Audio library used as a building block to make playlists from songs.
Installation
============
bliss-audio is available for Python 3.5+ via pip:
```
$ pip install bliss-audio
```
Usage
=====
```python
from bliss_audio import Song
import numpy as np
song1 = Song("/path/to/song1")
song2 = Song("/path/to/song2")
distance = np.linalg.norm(np.array(song1.analysis) - np.array(song2.analysis))
print('Distance between song1 and song2 is {}'.format(distance))
```
Then you most likely want to analyze a bunch of songs like that, store the
result somewhere, and generate playlists on the fly by taking a song and
finding the next one by computing the one with the smallest distance to it.
نحوه نصب
نصب پکیج whl bliss-audio-0.1.7:
pip install bliss-audio-0.1.7.whl
نصب پکیج tar.gz bliss-audio-0.1.7:
pip install bliss-audio-0.1.7.tar.gz