github.com/l1fe-labs/forge-go/media
Go media package.
Go media package.
Package contract
| Field | Value |
|---|---|
| Language | go |
| Source version | module source snapshot |
| Manifest | forge-go/go.mod |
| Source files | 5 |
| Evidence | Source reference; registry publication and runtime conformance are separate checks |
Import boundary
import "github.com/l1fe-labs/forge-go/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.
error.go
Read declaration text · 10 declaration entries
type ErrKind string
const (
// ErrKindGeneration indicates an image or video generation error.
ErrKindGeneration ErrKind;
type MediaError struct
func (e *MediaError) Error() string
func (e *MediaError) Unwrap() error
func (e *MediaError) Is(target error) bool
func NewGenerationError(model, message string, cause error) *MediaError
func NewTranscriptionError(model, message string, cause error) *MediaError
func NewSpeechError(model, message string, cause error) *MediaError
func NewVideoError(model, message string, cause error) *MediaError
func NewUnsupportedFormatError(format, operation string) *MediaErrorimage.go
Read declaration text · 7 declaration entries
type ImageFormat string
const (
// ImageFormatPNG is the PNG image format.
ImageFormatPNG ImageFormat;
func (f ImageFormat) MimeType() string
func (f ImageFormat) Extension() string
type ImageOptions struct
type ImageResult struct
type ImageProvider interface
func GenerateImage(ctx context.Context, provider ImageProvider, prompt string, options ImageOptions) (*ImageResult, error)speech.go
Read declaration text · 7 declaration entries
type AudioFormat string
const (
// AudioFormatMP3 is the MP3 audio format.
AudioFormatMP3 AudioFormat;
func (f AudioFormat) MimeType() string
func (f AudioFormat) Extension() string
type SpeechOptions struct
type SpeechResult struct
type SpeechProvider interface
func Speak(ctx context.Context, provider SpeechProvider, text string, options SpeechOptions) (*SpeechResult, error)transcription.go
Read declaration text · 6 declaration entries
type TranscriptionSegment struct
func (s TranscriptionSegment) Duration() float64
type TranscriptionOptions struct
type TranscriptionResult struct
type TranscriptionProvider interface
func Transcribe(ctx context.Context, provider TranscriptionProvider, audio []byte, options TranscriptionOptions) (*TranscriptionResult, error)video.go
Read declaration text · 7 declaration entries
type VideoFormat string
const (
// VideoFormatMP4 is the MP4 video format.
VideoFormatMP4 VideoFormat;
func (f VideoFormat) MimeType() string
func (f VideoFormat) Extension() string
type VideoOptions struct
type VideoResult struct
type VideoProvider interface
func GenerateVideo(ctx context.Context, provider VideoProvider, prompt string, options VideoOptions) (*VideoResult, error)