Skip to content

attendi-android v0.3.1

Choose a tag to compare

@emilianoalvarez91 emilianoalvarez91 released this 12 Aug 09:40
· 17 commits to main since this release
c38034d

Changed

  • Replaced the permissionsDeniedPermanentlyView setting in AttendiMicrophoneSettings with a new flag, showsDefaultPermissionsDeniedDialog, to control whether the default Attendi error dialog appears when recording permissions are denied.
  • To customize the error view, combine showsDefaultPermissionsDeniedDialog with the onRecordingPermissionDeniedCallback callback from AttendiMicrophone.
  • Renamed AttendiMicrophone API methods
    • onMicrophoneTapCallback -> onMicrophoneTap
    • onRecordingPermissionDeniedCallback -> onRecordingPermissionDenied

Improved

  • Enhanced error handling across AudioRecorder, AttendiRecorder, and BaseAsyncTranscribeService.
  • Updated SDK example to cover and validate all core functionalities, including audio recording, live transcription, plugin integration, and error handling.
  • Added UserAgentProvider in AttendiTranscribeService to set a default user agent if none is specified.

Removed

  • Removed unused assets and string resources.
  • Deprecated AttendiMicrophonePlugin and integrated microphone-specific plugins directly into AttendiMicrophone to simplify usage and reduce complexity.

Breaking Changes

// Old:
AttendiMicrophone(
    recorder = recorderInstance,
    settings = AttendiMicrophoneSettings(
        size = 64.dp,
        colors = AttendiMicrophoneDefaults.colors(baseColor = Colors.Red),
        isVolumeFeedbackEnabled = false
    ),
    onMicrophoneTapCallback = {
        print("Microphone tapped")
    },
    onRecordingPermissionDeniedCallback = {
        print("Microphone access denied")
    }
)
// New:
AttendiMicrophone(
    recorder = recorderInstance,
    settings = AttendiMicrophoneSettings(
        size = 64.dp,
        colors = AttendiMicrophoneDefaults.colors(baseColor = Colors.Red),
        isVolumeFeedbackEnabled = false
    ),
    onMicrophoneTap = {
        print("Microphone tapped")
    },
    onRecordingPermissionDenied = {
        print("Microphone access denied")
    }
)

Full Changelog: v0.3.0...v0.3.1