oto-Sink bekommt eine Format-Weiche: RIFF/WAVE-PCM (osbuiltin) und MP3 (ElevenLabs/OpenAI/Edge ab Task 03). Dekoder ist github.com/hajimehoshi/ go-mp3 v0.3.4 — reines Go ohne CGO, verifiziert per GOOS/GOARCH-Matrix mit CGO_ENABLED=0 (alle 6 Targets bauen). Der Dekoder liefert immer 16-Bit-LE stereo (Mono-Quellen wie Edge 24 kHz werden gespiegelt); die Sample-Rate kommt aus dem ersten Frame. Fixtures sind echte, einmalig erzeugte MP3s (mono 24 kHz 48 kbit/s = Edge-Format, stereo 44,1 kHz = Cloud-typisch), als Base64 eingebettet — Tests bleiben werkzeugfrei.
17 lines
354 B
AMPL
17 lines
354 B
AMPL
module code.m3ta.dev/m3tam3re/talk
|
|
|
|
go 1.26.8
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.6.0
|
|
github.com/ebitengine/oto/v3 v3.5.0
|
|
github.com/gorilla/websocket v1.5.3
|
|
github.com/hajimehoshi/go-mp3 v0.3.4
|
|
)
|
|
|
|
require (
|
|
github.com/ebitengine/purego v0.11.0 // indirect
|
|
github.com/jfreymuth/pulse v0.1.3 // indirect
|
|
golang.org/x/sys v0.47.0 // indirect
|
|
)
|