How to get the input and output buffer datatype for whisper ASR model

I am trying to use whisper_base_en-whisperencoder.tflite in my android project but get a error when passing tensor flow buffer
voiceInterpreter!!.run(tensor?.getTensorBuffer(), outputBuffer)

How to resolve or pass the right data to model ?