Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This model encodes audio files into vectors of 100 dimensions. It was trained on 240,000 Spotify playlists and on 30 second samples of over 4 million songs. The details can be found (here)[https://github.com/teticio/Deej-AI].
|
2 |
+
|
3 |
+
To encode an audio first install the package with
|
4 |
+
```
|
5 |
+
pip install audiodiffusion
|
6 |
+
```
|
7 |
+
|
8 |
+
and then run
|
9 |
+
|
10 |
+
```python
|
11 |
+
from audiodiffusion.audio_encoder import AudioEncoder
|
12 |
+
|
13 |
+
audio_encoder = AudioEncoder.from_pretrained("teticio/audio-encoder")
|
14 |
+
audio_encoder.encode(<list of audio files>)
|
15 |
+
```
|