Skip to content

Commit

Permalink
Updated readme embed-extraction pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hmehdi515 authored and juanmc2005 committed Jun 28, 2024
1 parent 1c888bb commit ea97f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ mic = MicrophoneAudioSource()

stream = mic.stream.pipe(
# Reformat stream to 5s duration and 500ms shift
dops.rearrange_audio_stream(sample_rate=segmentation.model.sample_rate),
dops.rearrange_audio_stream(sample_rate=16000),
ops.map(lambda wav: (wav, segmentation(wav))),
ops.starmap(embedding)
).subscribe(on_next=lambda emb: print(emb)) #emb.shape to display shape
Expand Down

0 comments on commit ea97f1e

Please sign in to comment.