@@ -67,6 +67,9 @@ def main():
chunk = signal[:, start_sample:end_sample]
# normalize
chunk /= chunk.abs().max()
# SpeechBrain expects [batch, time]
emb = classifier.encode_batch(chunk)
emb = emb.squeeze().detach().cpu().numpy()
The note is not visible to the blocked user.