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') )