audio

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package audio provides audio generation orchestration. It coordinates TTS providers to generate audio files from markdown sections, with support for timing control and format conversion.

Key features:

  • Audio generation orchestration
  • Timing annotation support
  • Speaking rate calculation
  • Multiple output formats (AIFF, M4A, MP3)
  • Duration measurement and validation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAvailableVoices

func ListAvailableVoices() error

ListAvailableVoices lists all available macOS voices

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator handles audio file generation

func NewGenerator

func NewGenerator(config GeneratorConfig, log logger.LoggerInterface) *Generator

NewGenerator creates a new audio generator

func (*Generator) Generate

func (g *Generator) Generate(section parser.Section, index int) error

Generate generates an audio file for a section

type GeneratorConfig

type GeneratorConfig struct {
	Voice     string
	Rate      int
	Format    string
	Prefix    string
	OutputDir string
	Provider  tts.Provider // TTS provider to use
}

GeneratorConfig holds configuration for audio generation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL