io

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertRawToWAVData

func ConvertRawToWAVData(data []int16, sampleRate, channels int) ([]byte, error)

ConvertRawToWAVData converts raw audio data to WAV format and returns the WAV data.

func RecordAudio

func RecordAudio(sampleRate float64, callback func(data []byte, err error)) (chan struct{}, error)

RecordAudio starts recording audio and returns a channel to stop the recording. The callback is called once with all collected audio data after the recording stops.

Types

This section is empty.

Jump to

Keyboard shortcuts

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