Preparing search index...
The search index is not available
LiveKit Agents
LiveKit Agents
agents
tokenize
basic
SentenceTokenizer
Class SentenceTokenizer
Hierarchy (
view full
)
tokenize
.
SentenceTokenizer
SentenceTokenizer
Index
Constructors
constructor
Methods
stream
tokenize
Constructors
constructor
new
Sentence
Tokenizer
(
language
?
,
minSentenceLength
?
,
streamContextLength
?
)
:
tokenize
.
basic
.
SentenceTokenizer
Parameters
language
:
string
= 'en-US'
minSentenceLength
:
number
= 20
streamContextLength
:
number
= 10
Returns
tokenize
.
basic
.
SentenceTokenizer
Methods
stream
stream
(
language
?
)
:
SentenceStream
Returns a
SentenceStream
that can be used to push strings and receive smaller segments.
Parameters
Optional
language
:
string
Returns
SentenceStream
tokenize
tokenize
(
text
,
language
?
)
:
string
[]
Parameters
text
:
string
Optional
language
:
string
Returns
string
[]
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
stream
tokenize
LiveKit Agents
Loading...
Returns a SentenceStream that can be used to push strings and receive smaller segments.