Documentation
¶
Overview ¶
Package main implements an audio streaming encoder that captures audio from digital input and streams to multiple SRT destinations.
Usage:
encoder [-config path/to/config.json]
If -config is not specified, the encoder looks for config.json in the same directory as the binary.
Package main embeds static web assets (HTML, CSS, JavaScript) directly into the compiled binary using Go's embed directive. This eliminates external file dependencies and simplifies deployment to a single executable.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
audio
Package audio provides audio processing utilities including level metering and silence detection.
|
Package audio provides audio processing utilities including level metering and silence detection. |
|
config
Package config provides application configuration management.
|
Package config provides application configuration management. |
|
encoder
Package encoder provides the audio capture and encoding engine.
|
Package encoder provides the audio capture and encoding engine. |
|
notify
Package notify provides notification services for silence alerts.
|
Package notify provides notification services for silence alerts. |
|
output
Package output manages FFmpeg output processes for streaming.
|
Package output manages FFmpeg output processes for streaming. |
|
server
Package server provides the HTTP server and WebSocket handler for the web interface.
|
Package server provides the HTTP server and WebSocket handler for the web interface. |
|
types
Package types provides shared type definitions used across the encoder.
|
Package types provides shared type definitions used across the encoder. |
|
util
Package util provides shared utility functions used across the encoder.
|
Package util provides shared utility functions used across the encoder. |
Click to show internal directories.
Click to hide internal directories.