attendi-android v0.3.1
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
AttendiMicrophoneAPI methodsonMicrophoneTapCallback->onMicrophoneTaponRecordingPermissionDeniedCallback->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