audio

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeOggOpus

func DecodeOggOpus(r io.Reader, onFrame func([]byte) error) error

DecodeOggOpus reads an Ogg format stream and extracts individual Opus payloads. It calls onFrame for every complete Opus frame found in the stream.

func SplitSentences

func SplitSentences(text string) []string

SplitSentences splits text into sentence-sized chunks suitable for TTS synthesis. It splits on sentence-ending punctuation (.!?\n, as well as CJK 。, !, ?) while avoiding false splits on decimal numbers. Very short fragments are merged with the next sentence to prevent choppy playback.

Types

This section is empty.

Directories

Path Synopsis
Package voice runs speech-to-text and text-to-speech for a voice target "instance-id/model-id" on the llmgw-core provider of the target's instance: transcription is an Invoke on the audio_transcriptions surface with the OpenAI multipart transcription body, synthesis one on audio_speech with the OpenAI speech JSON.
Package voice runs speech-to-text and text-to-speech for a voice target "instance-id/model-id" on the llmgw-core provider of the target's instance: transcription is an Invoke on the audio_transcriptions surface with the OpenAI multipart transcription body, synthesis one on audio_speech with the OpenAI speech JSON.

Jump to

Keyboard shortcuts

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