Forge documentation
Library referencePython

forge.media

Python media package; imports are explicit from this package.

Python media package; imports are explicit from this package.

Package contract

FieldValue
Languagepython
Source version0.1.0
Manifestforge-py/pyproject.toml
Source files4
EvidenceSource reference; registry publication and runtime conformance are separate checks

Import boundary

import forge.media

Use a source checkout or your verified private registry. Manifest coordinates identify the package; they do not establish that a public registry release exists.

Source reference

Download package reference JSON. Each original source file and generated declaration artifact has its own SHA-256 digest. Function bodies and constant values are omitted from downloads. These are source declaration inventories, not compiler-resolved rustdoc, TypeDoc, DocC, or Dokka output. Private modules can contain public declarations that are not reachable through the package boundary; consult the entry point before importing.

image.py

Read declaration text · 4 declaration entries

class GeneratedImage()

class ImageGenerationProvider(ABC)

def provider_name(self) -> str

async def generate(self, prompt: str, *, size: str='1024x1024', quality: str='standard', n: int=1) -> list[GeneratedImage]

speech.py

Read declaration text · 4 declaration entries

class SpeechResult()

class SpeechProvider(ABC)

def provider_name(self) -> str

async def synthesize(self, text: str, *, voice: str='default', speed: float=1.0, format: str='mp3') -> SpeechResult

transcription.py

Read declaration text · 4 declaration entries

class TranscriptionResult()

class TranscriptionProvider(ABC)

def provider_name(self) -> str

async def transcribe(self, audio_data: bytes, *, language: str | None=None, format: str='wav') -> TranscriptionResult

Continue

On this page