Skip to content

AudioContentBlock

Base classes

Name Children Inherits
BaseContentBlock
aclientp.schema.content_blocks
Base content block.

⋔ Inheritance diagram

graph TD
  95970859441088["content_blocks.AudioContentBlock"]
  95970859784416["content_blocks.BaseContentBlock"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970859784416 --> 95970859441088
  95970862258240 --> 95970859784416
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: BaseContentBlock

Audio data for transcription or analysis.

Requires the audio prompt capability when included in prompts.

Source code in src/aclientp/schema/content_blocks.py
class AudioContentBlock(BaseContentBlock):
    """Audio data for transcription or analysis.

    Requires the `audio` prompt capability when included in prompts.
    """

    type: Literal["audio"] = Field(default="audio", init=False)

    data: str
    """Base64-encoded audio data."""

    mime_type: str
    """MIME type of the audio."""

data instance-attribute

data: str

Base64-encoded audio data.

mime_type instance-attribute

mime_type: str

MIME type of the audio.

:fa-brands-github: Show source on GitHub