Skip to content

API Reference parrot_formdesigner.audio.recordings

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_formdesigner.audio.recordings

View source

Blob persistence for spoken-answer recordings (FEAT-649, Module 6).

Alias AbstractBlobStorage

Re-exported from parrot_formdesigner.services.blob_storage.AbstractBlobStorage.

Alias BlobMetadata

Re-exported from parrot_formdesigner.services.blob_storage.BlobMetadata.

Alias FormField

Re-exported from parrot_formdesigner.core.schema.FormField.

Alias FormSchema

Re-exported from parrot_formdesigner.core.schema.FormSchema.

Function delete_recording

Delete a stored recording; idempotent, never raises for a missing blob.

delete_recording(storage: AbstractBlobStorage, blob_ref: str) -> None

Parameter Type Default Description
storage AbstractBlobStorage
blob_ref str

Attribute logger

Function recording_blob_id

f"voice-{session_id}-{field_uid}" — matches BlobMetadata.blob_id regex (services/blob_storage.py:93).

recording_blob_id(session_id: str, field_uid: uuid.UUID) -> str

Parameter Type Default Description
session_id str
field_uid uuid.UUID

Returns: str

Function store_recording

storage.put(, metadata=BlobMetadata(...)) → blob_ref; same session+field overwrites.

store_recording(storage: AbstractBlobStorage, *, audio: bytes, mime: str, form: FormSchema, field: FormField, session_id: str, submission_id: str, tenant: str | None) -> str

Parameter Type Default Description
storage AbstractBlobStorage
audio bytes
mime str
form FormSchema
field FormField
session_id str
submission_id str
tenant str | None

Returns: str

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally