[][src]Crate alass_util

Modules

morph

[Experimental] Mathematical morphological operators for cleaning voice activity data

util

Various utility functions for conversions, charset detection, etc.

Structs

AudioSink

Receives audio samples to be processed for voice-activity and used as reference by the synchronization process

SyncOptions

Options governing the synchronization process

TimeSpans

TimeSpan buffer to be used as reference by the synchronization process

VoiceActivity

Voice activity as computed by webrtc-vad

Enums

AudioSinkError

Represents an error processing sample data

AudioSinkState

Represents current state of audio AudioSink

SyncError

Represents errors that may occur during syncing

TimeSpansLoadError

Represents an error reading raw timespan data from disk

TimeSpansSaveError

Represents an error writing raw timespan data to disk

Constants

DEFAULT_MICRODVD_FPS

Default value used to interpret MicroDVD '.sub' files which use frame ids instead of timestamps

FRAMERATES

Standard framerates for framerate correction

Functions

is_format_supported

Ensure that the format of a given subtitle file supports syncing

open_sub_file

Reads and parses subtitle file from disk

parse_sub_file

Parses raw subtitle content with either user-specified or auto-detected encoding. If parsing fails with the user-specified encoding, will detect and try again.

save_sub_file

Writes a subtitle file to disk at the given path

sync

Reads and parses an input subtitle file, synchronizes it with the given reference timespans using the alass crate, and writes the corrected subtitles back to disk.