Synaptic.Voice.TextSegmenter (synaptic v0.3.0-alpha.8)

View Source

Incremental text segmentation so TTS can start speaking before full text is available.

Summary

Functions

consume(buffer, chunk)

@spec consume(String.t(), String.t()) :: {[String.t()], String.t()}

flush(buffer)

@spec flush(String.t()) :: [String.t()]