diff --git a/audio_embedding_clmr.py b/audio_embedding_clmr.py new file mode 100644 index 0000000..dc71185 --- /dev/null +++ b/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') + ) + \ No newline at end of file