mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/transcription
addWordTimestamps
Function addWordTimestamps
addWordTimestamps
(
segments
:
WhisperSegment
[]
,
model
:
WhisperGraph
,
tokenizer
:
WhisperTokenizer
,
language
:
string
,
mel
:
MlxArray
,
numFrames
:
number
,
lastSpeechTimestamp
:
number
,
prependPunctuations
?:
string
,
appendPunctuations
?:
string
,
)
:
number
add_word_timestamps: annotates
segments
(one window) with words.
Parameters
segments
:
WhisperSegment
[]
model
:
WhisperGraph
tokenizer
:
WhisperTokenizer
language
:
string
mel
:
MlxArray
numFrames
:
number
lastSpeechTimestamp
:
number
prependPunctuations
:
string
= "\"'“¿([{-"
appendPunctuations
:
string
= "\"'.。,,!!??::”)]}、"
Returns
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
mlx-bun library API
Loading...
add_word_timestamps: annotates
segments(one window) with words.