UserRecordedAudioUploadProtocol

@objc
public protocol UserRecordedAudioUploadProtocol

Undocumented

  • The file at fileURL will 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

    fileURL

    The fileURL must 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.

    completion

    error == nil indicates a successful finish of the upload. error can 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 }