Audio Messaging allows consumers to send audio messages to agents.
-
Contact your Account Team to activate the feature on the LivePerson server side.
-
Open the Info.plist and add the required permission to access the microphone.
-
Key:
NSMicrophoneUsageDescription -
Value: "Microphone Privacy Setting for Conversational Cloud Mobile App Messaging SDK for iOS"
When the system prompts the user to approve access to the microphone, it displays as part of the alert.
-
-
Enable the feature:
LPConfig.defaultConfiguration.enableAudioSharingBy default, the value is false (disabled).
-
Define the max length of an audio message:
LPConfig.defaultConfiguration.recordingDurationLimitThe values are in seconds.
The minimum value is 15 seconds; the maximum and the default value is 120 seconds.
-
Define the max number of audio messages saved on the device:
LPConfig.defaultConfiguration.maxNumberOfSavedAudioFilesOnDiskThe default value is 20.
-
Modify and localize the following strings:
-
Short tap tooltip
Presented when the consumer used a shorttap instead of a long tap.
Key:
toolTipLongTapToRecordThe default text is "Long tap to record."
-
Release microphone tooltip
Presented when the consumer doesn't release the microphone icon.
Key:
toolTipReleaseButtonForRecordingThe default text is "Release for recording."
-
Maximum length reached tooltip
Presented when the message length reached to the maximum length.
Key:
toolTipRecordLimitReachedThe default text is "Recording limit has been reached, click to send."
-