In order for you to Enable Voice Notes for "One-to-One" or "Group Chat".
Step 1:
Login to CometChat admin panel.
Step 2:
From Left Menu Click on "Features"
Step 3:
In "Conversation Features" section search for "Share Voice Notes"
Step 4:
Enable Voice Notes for "One-to-One" or "Group Chat".