Audio Limits: Maximum file size is 1GB and maximum duration is 1 hour. Files exceeding these limits will be rejected during upload.
Key Features
Multiple Formats
Support for MP3, WAV, AAC, M4A, OGG, Opus, FLAC, and more
Metadata Extraction
Automatic extraction of duration, bitrate, sample rate, and channels
Progress Tracking
Real-time upload progress
Size & Duration Validation
Automatic validation against network-configured limits
Supported Audio Formats
Common Formats
Common Formats
| Format | Extension | MIME Type | Notes |
|---|---|---|---|
| MP3 | .mp3 | audio/mpeg | Most widely supported |
| AAC | .aac, .m4a | audio/aac, audio/mp4 | High quality, efficient compression |
| WAV | .wav | audio/wav | Uncompressed, high quality |
| OGG | .ogg | audio/ogg | Open-source alternative |
Advanced Formats
Advanced Formats
| Format | Extension | MIME Type | Notes |
|---|---|---|---|
| Opus | .opus | audio/opus | Low-latency, high quality |
| FLAC | .flac | audio/flac | Lossless compression |
| M4A | .m4a | audio/mp4 | Apple ecosystem standard |
Audio Properties
Audio files include comprehensive metadata extracted during upload:Core Properties
Core Properties
| Property | Type | Description |
|---|---|---|
fileId | string | Unique identifier for the audio file |
fileUrl | string | Direct download/streaming URL |
filename | string | Original filename with extension |
type | string | Always "audio" for audio files |
Audio Metadata
Audio Metadata
| Property | Type | Description |
|---|---|---|
duration | number | Audio duration in seconds |
bitRate | number | Bitrate in bits per second |
sampleRate | number | Sample rate in Hz (e.g., 44100) |
channels | number | Number of audio channels (1 = mono, 2 = stereo) |
File Attributes
File Attributes
| Property | Type | Description |
|---|---|---|
size | number | File size in bytes |
mimeType | string | MIME type (e.g., "audio/mpeg") |
extension | string | File extension (e.g., "mp3") |
name | string | File name |
Audio Metadata Structure
The System automatically extracts audio metadata once uploaded, providing detailed information for playback and display:
Audio Upload
Upload audio files with automatic validation, metadata extraction, and progress tracking. The SDK handles format verification and enforces network-configured size and duration limits.1
Select Audio File
Choose an audio file from the device’s file system
2
Upload with Progress
Upload the file with real-time progress tracking
3
Receive Audio Data
Get the uploaded audio data with extracted metadata
4
Use in Posts
Use the fileId to create audio posts
Validation & Limits
Size Limits
Size Limits
Maximum File Size: 1GBFiles exceeding 1GB are rejected before upload begins. This validation happens client-side to prevent unnecessary network usage.
Duration Limits
Duration Limits
Maximum Duration: 1 Hour (3600 seconds)Audio files longer than 1 hour are rejected during server-side validation after metadata extraction.
Duration validation happens server-side, so the upload may begin before rejection occurs. Consider implementing client-side duration checks when possible.
Format Validation
Format Validation
Supported MIME TypesThe following MIME types are supported by default:
audio/mpeg(MP3)audio/wav(WAV)audio/aac(AAC)audio/mp4(M4A, MP4 audio)audio/ogg(OGG)audio/opus(Opus)audio/flac(FLAC)
Network administrators can configure a custom allowlist of MIME types in the social.plus console. Check your network settings for specific restrictions.
Best Practices
Audio Optimization
Audio Optimization
- Use appropriate bitrates: 128-192 kbps for speech, 256-320 kbps for music
- Choose efficient formats: AAC or Opus for better compression than MP3
- Normalize audio levels: Ensure consistent volume across files
- Consider mono for speech: Reduces file size for podcasts and voice recordings
User Experience
User Experience
- Show upload progress: Display real-time progress to keep users informed
- Validate before upload: Check file size and format client-side
- Provide audio preview: Let users preview before uploading
- Handle errors gracefully: Show clear error messages with suggested actions
- Support cancellation: Allow users to cancel long uploads
Performance
Performance
- Compress before upload: Reduce file size for faster uploads
- Use background uploads: Don’t block UI during upload
- Implement retry logic: Handle network failures gracefully
- Cache uploaded files: Avoid re-uploading the same file
- Validate early: Check constraints before starting upload
Troubleshooting
Upload Failures
Upload Failures
Problem: Audio upload fails or times outCommon Causes & Solutions:
- File Size Exceeded
- Error: File size exceeds 1GB limit
- Solution: Compress audio or reduce bitrate/sample rate
- Duration Exceeded
- Error: Audio duration exceeds 1 hour
- Solution: Split long audio into multiple files or trim content
- Unsupported Format
- Error: Audio format not supported
- Solution: Convert to a supported format (MP3, AAC, WAV, etc.)
- Network Timeout
- Error: Request timeout or network error
- Solution: Implement retry logic, check internet connection
Metadata Issues
Metadata Issues
Problem: Missing or incorrect metadataSolutions:
- Ensure audio file has valid metadata embedded
- Use standard audio formats (MP3, AAC) for better metadata support
- Re-encode file with proper metadata if needed
Playback Issues
Playback Issues
Problem: Uploaded audio won’t play or has quality issuesSolutions:
- Verify format is supported by target platform browsers/players
- Check bitrate isn’t too low (min 64 kbps recommended)
- Ensure sample rate is standard (44.1kHz or 48kHz)
- Test playback URL directly in browser
Common Use Cases
Podcasts
Upload podcast episodes with chapter markers and metadata
Music Sharing
Share songs, albums, or playlists with high-quality audio
Voice Messages
Quick voice recordings for personal communication
Audio Books
Share narrated content and audiobook chapters
Sound Effects
Upload audio samples and sound effects libraries
Interviews
Record and share interview recordings and discussions