def METHOD_NAME(self, wav):
    # for tvm
    wav = float2pcm(wav)  # float32 to int16
    wav_bytes = wav.tobytes()  # to bytes
    wav_base64 = base64.b64encode(wav_bytes).decode('utf8')  # to base64
    return wav_base64