Several channels allow you to send audio files to your bot. If you enable your bot in Facebook Messenger, just click the microphone icon to record audio

The player for the recorded sound will appear in the user stream, and the audio file will be transferred to your bot as an attachment:

Lars source
share