yum-slop/TaSTT
Free self-hosted STT for VRChat.
git clone https://git.yummers.dev/yum-slop/TaSTT
add7bd8
v0.21.0
1import time 2 3 4class TranscriptCommit : 5def __init__ ( self , 6delta : str , 7preview : str , 8latency_s : float = None , 9thresh_at_commit : int = None , 10audio : bytes = None , 11duration_s : float = None , 12start_ts : float = None ) : 13self . delta = delta 14self . preview = preview 15self . latency_s = latency_s 16self . thresh_at_commit = thresh_at_commit 17self . audio = audio 18# Time at which the commit is generated 19self . ts = time . time () 20# Time corresponding to the start of the segment 21self . start_ts = start_ts 22# The duration of the audio segment, in seconds. 23self . duration_s = duration_s 24 25 26class StreamingPlugin : 27def __init__ ( self ) : 28pass 29 30def transform ( self , commit : TranscriptCommit ) -> TranscriptCommit : 31return commit 32 33def stop ( self ) : 34pass 35