pion /
webrtc
Pure Go implementation of the WebRTC API
96/100 healthLoading repository data…
tcpipuk / repository
Pure Go implementation of SNAC (Multi-Scale Neural Audio Codec) decoder
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Pure Go implementation of the SNAC neural audio codec decoder for text-to-speech applications.
SNAC-Go decodes multi-scale neural audio codes into high-quality audio waveforms. It integrates with llama-go to enable complete Go-based text-to-speech using models like Orpheus TTS, with no Python runtime dependencies.
go get github.com/tcpipuk/snac-go
package main
import (
"github.com/tcpipuk/snac-go/snac"
"log"
)
func main() {
// Load SNAC decoder with 24kHz model
decoder, err := snac.NewDecoder("hubertsiuzdak/snac_24khz")
if err != nil {
log.Fatal(err)
}
// Decode SNAC tokens to audio
// tokens is [3][]int representing 3 hierarchical codebook levels
audio, err := decoder.Decode(tokens)
if err != nil {
log.Fatal(err)
}
// Write to WAV file
if err := writeWAV("output.wav", audio, 24000); err != nil {
log.Fatal(err)
}
}
The Python SNAC decoder is ~474 lines whilst this is nearly 4700. We want pure Go for TTS (llama-go runs Orpheus, snac-go decodes audio), but PyTorch does the heavy lifting in Python - convolutions and attention get implemented manually using Gorgonia. GoMLX would shrink this significantly, but it's pre-v1.0 with API instability. Current approach is pragmatic: reliable pure Go now, but ready to migrate when GoMLX stabilises.
See Architecture Guide for technical details about how SNAC decoder works.
Licensed under the Apache Licence 2.0
Selected from shared topics, language and repository description—not editorial ratings.
pion /
Pure Go implementation of the WebRTC API
96/100 healthquic-go /
A production-ready QUIC implementation in pure Go
92/100 healthgo-git /
A highly extensible Git implementation in pure Go.
nsf /
Pure Go termbox implementation
86/100 healthitchyny /
Pure Go implementation of jq
89/100 healthchzyer /
Readline is a pure go(golang) implementation for GNU-Readline kind library
81/100 health