UserRecordedAudioUploadProtocol
@objc
public protocol UserRecordedAudioUploadProtocol
Undocumented
-
The file at
fileURLwill be validated and uploaded to Lwayve server to be reviewed and added to the experience.Declaration
Swift
func uploadUserRecordedAudio(fileURL: URL, completion: @escaping (_ error: Error?) -> Void)Parameters
fileURLThe
fileURLmust be a URL to the local file system accessible to the application. The audio file requirements:- Supported formats: .mp3, .m4a;
- The file must contain non-empty audio;
- The audio file size must be not more than 2MB;
- the length of the audio in the file must be not more than 1 minute.
completionerror == nilindicates a successful finish of the upload.errorcan be of following types:UserRecordedAudioUploaderError,UserRecordedAudioValidatorError -
Maximum audio duration that can be recored using record action from the outer band.
Declaration
Swift
var maximumUserRecordedAudioDuration: UserRecordedAudioDuration { get set }
View on GitHub
UserRecordedAudioUploadProtocol Protocol Reference