logo
Browse Source

Add audio_embedding_clmr.py

Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
shiyu22 1 year ago
parent
commit
de2b0cf173
  1. 11
      audio_embedding_clmr.py

11
audio_embedding_clmr.py

@ -0,0 +1,11 @@
from towhee import pipe, ops, AutoPipes
@AutoPipes.register
def AudioEmbeddingVggish():
return (
pipe.input('path')
.map('path', 'frame', ops.audio_decode.ffmpeg())
.map('frame', 'vec', ops.audio_embedding.clmr())
.output('vec')
)
Loading…
Cancel
Save