TypeScript, Android, and iOS expose audio post creation APIs. Flutter can upload audio files, but the current public Flutter post creation builder does not expose an audio post creation method.
Uploaded Audio
Create posts from audio objects or file IDs returned by the audio upload flow.
Platform-Aware
Use audio post creation only on SDKs that expose it in the public post builder.
Create an Audio Post
The examples below create an audio post in a community on SDKs that support audio post creation.Flutter Support
Flutter’s public file repository supports audio upload, but the public post creation builder currently exposes text, image, video, file, poll, live stream, and custom post creation paths. It does not expose.audio(...) or a dedicated audio post creator.
Use a supported Flutter post type, or create audio posts from a platform/backend layer that exposes audio post creation.
Notes
- TypeScript accepts audio attachments as
{ type: "audio", fileId }. - Android accepts a
Set<AmityAudio>. - iOS accepts
[AmityAudioData]. - Do not set
structureTypemanually; the service derives post structure from the created post data.