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: 0

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