How to send an audio file over websocket?

I have a use case where I need to pass a binary audio file(which is a wave) to send the speech recognition service where I could get some response in text.

Note: I don’t want to send that through text(After converting to binary object).

Thanks in advance.

Hi @rohitghongade67, welcome to the forum!:tada:

Since k6 v0.32.0 (released a month ago) you can now use sendBinary.