Ariver
2026-06-07 605a6b2b280c0b2d555f0e2fad56b289361ce29c
privatevoice.src/internal/engine/engine.go
@@ -20,6 +20,20 @@
   Close()
}
// StreamingEngine is implemented by engines that can expose partial results
// while audio is still being captured.
type StreamingEngine interface {
   NewStreamingSession() (StreamingSession, error)
}
// StreamingSession receives incremental 16kHz mono PCM and returns the current
// best transcript for the active utterance.
type StreamingSession interface {
   Accept(samples []float32) (string, error)
   Finish() (string, error)
   Close()
}
// ModelDir returns the path to the sensevoice model directory.
func ModelDir() string {
   resolved, err := resolveCurrentModel()