iOS: Tap on the “+” sign next to the text input field and select “Voice msg”. Tap on the record button to start recording. Then you can send your voice message or delete the recording to start it again.
Android: Tap on the paperclip symbol
For detailed information read Record voice messages.