Audio Message

Send an Audio Message

An audio message is a type of message that allows users to send and receive audio recordings in a chat or messaging application. Audio messages can be used to convey emotions, tone, or detailed information in a way that is not always possible with text messages or other types of media. They are a convenient and intuitive way to communicate with other users in real-time.

With the Amity Chat SDK, you can easily send and receive audio messages within your chat or messaging application. Simply provide the local path of the audio file to the sendAudioMessage method.

Here is a brief explanation of the function parameters:

  • text/caption: A string that contains the text message that the user wants to send. This parameter is mandatory as it contains the actual message content.

  • attachment: The local audio path that the user wants to send on the device

  • subchannelId: An identifier for the subchannel where the message will be sent. Subchannels are subdivisions within a channel that represent individual topics or chat threads. Messages and interactions occur within subchannels, not the main channel itself.

  • tags - Arbitrary strings that can be used for defining and querying for the messages.

Version 6

Version 5 (Maintained)

Supported audio formats are MP3, WAV and cannot exceed 1GB in size

Last updated