{
  "name": "github.com/l1fe-labs/forge-go/media",
  "language": "go",
  "version": "module source snapshot",
  "description": "Go media package.",
  "manifest": "forge-go/go.mod",
  "manifestSha256": "dee97864d07a64c4c93c79104137d155f0cbae6962945f3b56ceb7744a03cc82",
  "status": "source-reference",
  "registryPublicationVerified": false,
  "route": "/libraries/go/media",
  "features": {},
  "files": [
    {
      "path": "forge-go/media/error.go",
      "sha256": "a01f6c99d680f79f964dfc0ac3723fdb7ec2d3d240d6c56132ffdabf880514bb",
      "artifactSha256": "d1837143af683537582f8a79bc5702faadddc8c7a22e0f647cf483d95fa658d7",
      "url": "/reference/source/forge-go/media/error.go.txt",
      "declarations": [
        {
          "name": "type ErrKind string",
          "line": 17,
          "signature": "type ErrKind string\n\nconst (\n// ErrKindGeneration indicates an image or video generation error.\nErrKindGeneration ErrKind;",
          "documentation": ""
        },
        {
          "name": "type MediaError struct",
          "line": 40,
          "signature": "type MediaError struct",
          "documentation": ""
        },
        {
          "name": "func (e *MediaError) Error() string",
          "line": 55,
          "signature": "func (e *MediaError) Error() string",
          "documentation": ""
        },
        {
          "name": "func (e *MediaError) Unwrap() error",
          "line": 63,
          "signature": "func (e *MediaError) Unwrap() error",
          "documentation": ""
        },
        {
          "name": "func (e *MediaError) Is(target error) bool",
          "line": 68,
          "signature": "func (e *MediaError) Is(target error) bool",
          "documentation": ""
        },
        {
          "name": "func NewGenerationError(model, message string, cause error) *MediaError",
          "line": 99,
          "signature": "func NewGenerationError(model, message string, cause error) *MediaError",
          "documentation": ""
        },
        {
          "name": "func NewTranscriptionError(model, message string, cause error) *MediaError",
          "line": 113,
          "signature": "func NewTranscriptionError(model, message string, cause error) *MediaError",
          "documentation": ""
        },
        {
          "name": "func NewSpeechError(model, message string, cause error) *MediaError",
          "line": 127,
          "signature": "func NewSpeechError(model, message string, cause error) *MediaError",
          "documentation": ""
        },
        {
          "name": "func NewVideoError(model, message string, cause error) *MediaError",
          "line": 141,
          "signature": "func NewVideoError(model, message string, cause error) *MediaError",
          "documentation": ""
        },
        {
          "name": "func NewUnsupportedFormatError(format, operation string) *MediaError",
          "line": 155,
          "signature": "func NewUnsupportedFormatError(format, operation string) *MediaError",
          "documentation": ""
        }
      ]
    },
    {
      "path": "forge-go/media/image.go",
      "sha256": "3584e4211fb55e5467d210dd192a8b6887e96404995072ec57e7bb15d428df12",
      "artifactSha256": "bc1560aae5777fc43cdf0778c8d04e9097de8ca7628c603f9ace9a91113d43c4",
      "url": "/reference/source/forge-go/media/image.go.txt",
      "declarations": [
        {
          "name": "type ImageFormat string",
          "line": 8,
          "signature": "type ImageFormat string\n\nconst (\n// ImageFormatPNG is the PNG image format.\nImageFormatPNG ImageFormat;",
          "documentation": ""
        },
        {
          "name": "func (f ImageFormat) MimeType() string",
          "line": 22,
          "signature": "func (f ImageFormat) MimeType() string",
          "documentation": ""
        },
        {
          "name": "func (f ImageFormat) Extension() string",
          "line": 36,
          "signature": "func (f ImageFormat) Extension() string",
          "documentation": ""
        },
        {
          "name": "type ImageOptions struct",
          "line": 46,
          "signature": "type ImageOptions struct",
          "documentation": ""
        },
        {
          "name": "type ImageResult struct",
          "line": 66,
          "signature": "type ImageResult struct",
          "documentation": ""
        },
        {
          "name": "type ImageProvider interface",
          "line": 89,
          "signature": "type ImageProvider interface",
          "documentation": ""
        },
        {
          "name": "func GenerateImage(ctx context.Context, provider ImageProvider, prompt string, options ImageOptions) (*ImageResult, error)",
          "line": 122,
          "signature": "func GenerateImage(ctx context.Context, provider ImageProvider, prompt string, options ImageOptions) (*ImageResult, error)",
          "documentation": ""
        }
      ]
    },
    {
      "path": "forge-go/media/speech.go",
      "sha256": "9dcdf4560cd330205fdc6370352b4bf57e85061e9e155be4a6aa60e8cbe4abb8",
      "artifactSha256": "d73c087fdfda1e0b646b8a5aa8164437c0408d947bace5123f487b7eebeebb91",
      "url": "/reference/source/forge-go/media/speech.go.txt",
      "declarations": [
        {
          "name": "type AudioFormat string",
          "line": 8,
          "signature": "type AudioFormat string\n\nconst (\n// AudioFormatMP3 is the MP3 audio format.\nAudioFormatMP3 AudioFormat;",
          "documentation": ""
        },
        {
          "name": "func (f AudioFormat) MimeType() string",
          "line": 25,
          "signature": "func (f AudioFormat) MimeType() string",
          "documentation": ""
        },
        {
          "name": "func (f AudioFormat) Extension() string",
          "line": 41,
          "signature": "func (f AudioFormat) Extension() string",
          "documentation": ""
        },
        {
          "name": "type SpeechOptions struct",
          "line": 51,
          "signature": "type SpeechOptions struct",
          "documentation": ""
        },
        {
          "name": "type SpeechResult struct",
          "line": 67,
          "signature": "type SpeechResult struct",
          "documentation": ""
        },
        {
          "name": "type SpeechProvider interface",
          "line": 88,
          "signature": "type SpeechProvider interface",
          "documentation": ""
        },
        {
          "name": "func Speak(ctx context.Context, provider SpeechProvider, text string, options SpeechOptions) (*SpeechResult, error)",
          "line": 121,
          "signature": "func Speak(ctx context.Context, provider SpeechProvider, text string, options SpeechOptions) (*SpeechResult, error)",
          "documentation": ""
        }
      ]
    },
    {
      "path": "forge-go/media/transcription.go",
      "sha256": "23aa905928295d152daaec2078ab691776189553c4648bcb2d3e282df9aea49a",
      "artifactSha256": "76c59858e9392a53e376c44e8308235597a9255bc1b385dc95541a19dd0645bc",
      "url": "/reference/source/forge-go/media/transcription.go.txt",
      "declarations": [
        {
          "name": "type TranscriptionSegment struct",
          "line": 11,
          "signature": "type TranscriptionSegment struct",
          "documentation": ""
        },
        {
          "name": "func (s TranscriptionSegment) Duration() float64",
          "line": 25,
          "signature": "func (s TranscriptionSegment) Duration() float64",
          "documentation": ""
        },
        {
          "name": "type TranscriptionOptions struct",
          "line": 35,
          "signature": "type TranscriptionOptions struct",
          "documentation": ""
        },
        {
          "name": "type TranscriptionResult struct",
          "line": 47,
          "signature": "type TranscriptionResult struct",
          "documentation": ""
        },
        {
          "name": "type TranscriptionProvider interface",
          "line": 72,
          "signature": "type TranscriptionProvider interface",
          "documentation": ""
        },
        {
          "name": "func Transcribe(ctx context.Context, provider TranscriptionProvider, audio []byte, options TranscriptionOptions) (*TranscriptionResult, error)",
          "line": 105,
          "signature": "func Transcribe(ctx context.Context, provider TranscriptionProvider, audio []byte, options TranscriptionOptions) (*TranscriptionResult, error)",
          "documentation": ""
        }
      ]
    },
    {
      "path": "forge-go/media/video.go",
      "sha256": "67df47aa45f4faaa2d01ba0b5de4e6d357024ef358d09bfa786a53eb48ec6aac",
      "artifactSha256": "00d62470e452df4d86a6e44f374c96ffc1497545d8e9d0db488fe21817b1111d",
      "url": "/reference/source/forge-go/media/video.go.txt",
      "declarations": [
        {
          "name": "type VideoFormat string",
          "line": 8,
          "signature": "type VideoFormat string\n\nconst (\n// VideoFormatMP4 is the MP4 video format.\nVideoFormatMP4 VideoFormat;",
          "documentation": ""
        },
        {
          "name": "func (f VideoFormat) MimeType() string",
          "line": 19,
          "signature": "func (f VideoFormat) MimeType() string",
          "documentation": ""
        },
        {
          "name": "func (f VideoFormat) Extension() string",
          "line": 31,
          "signature": "func (f VideoFormat) Extension() string",
          "documentation": ""
        },
        {
          "name": "type VideoOptions struct",
          "line": 41,
          "signature": "type VideoOptions struct",
          "documentation": ""
        },
        {
          "name": "type VideoResult struct",
          "line": 58,
          "signature": "type VideoResult struct",
          "documentation": ""
        },
        {
          "name": "type VideoProvider interface",
          "line": 84,
          "signature": "type VideoProvider interface",
          "documentation": ""
        },
        {
          "name": "func GenerateVideo(ctx context.Context, provider VideoProvider, prompt string, options VideoOptions) (*VideoResult, error)",
          "line": 117,
          "signature": "func GenerateVideo(ctx context.Context, provider VideoProvider, prompt string, options VideoOptions) (*VideoResult, error)",
          "documentation": ""
        }
      ]
    }
  ]
}
