Browse Source
Update README
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
9 additions and
0 deletions
-
README.md
|
|
@ -20,7 +20,16 @@ Generate embeddings for the audio "test.wav". |
|
|
|
*Write a pipeline with explicit inputs/outputs name specifications:* |
|
|
|
|
|
|
|
```python |
|
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
p = ( |
|
|
|
pipe.input('path') |
|
|
|
.map('path', 'frame', ops.audio_decode.ffmpeg()) |
|
|
|
.map('frame', 'vecs', ops.audio_embedding.clmr()) |
|
|
|
.output('path', 'vecs') |
|
|
|
) |
|
|
|
|
|
|
|
DataCollection(p('./test.wav')).show() |
|
|
|
``` |
|
|
|
|
|
|
|
<img src="./result.png" width="800px"/> |
|
|
|