Skip to main content

AudioRecorderUploadEvent

Event payload for streaming recording uploads.

Delivered by AudioRecorder.on_upload for uploads started with AudioRecorder.start_recording.

Inherits: Event

Properties

Properties

bytes_uploadedclass-attributeinstance-attribute

bytes_uploaded: int | None = None

Number of bytes uploaded so far.

errorclass-attributeinstance-attribute

error: str | None = None

Error message if the upload failed.

file_nameclass-attributeinstance-attribute

file_name: str | None = None

Name provided by AudioRecorderUploadSettings.file_name.

progressclass-attributeinstance-attribute

progress: float | None = None

Upload progress from 0.0 to 1.0.

Streaming uploads do not know their total size until recording stops, so bytes_uploaded is usually the best progress indicator while recording is active.