SDKsAndroid
Create an audio message from a local path
Create an audio message from an absolute path.
Message message = OpenIMClient.getInstance().messageManager
.createSoundMessageFromFullPath(absolutePath, durationSeconds);The absolute path must be readable, and the audio duration is measured in seconds. This method only creates an object waiting to be sent.
Was this page helpful?