towhee
/
audio-embedding-vggish
copied
shiyu22
2 years ago
1 changed files with 10 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||
|
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.vggish()) |
||||
|
.output('vec') |
||||
|
) |
Loading…
Reference in new issue