WhisperLiveKit / whisper_fastapi_online_server.py

Commit History

script to lib
72d0416

qfuxa commited on

Refactor import statement for AudioProcessor and update cleanup method to be awaited; remove unused formatters and state management files
69c754e

qfuxa commited on

Refactor AudioProcessor methods for improved async handling and WebSocket integration
566619b

qfuxa commited on

Refactor DiartDiarization initialization and streamline WebSocket audio processing
ff49b3c

qfuxa commited on

refacto 0
b9f09f7

qfuxa commited on

Refactor PCM conversion to a dedicated function; immediate chunk addition to the diarization queue
6cccf9e

qfuxa commited on

Warmup functionality: add timeout option (for VM not connected to internet); False option to disable warmup
cdd5f7e

qfuxa commited on

Diarization : Uses a rx observer instead of diart attach_hooks method
a163c7b

qfuxa commited on

use confidence scores returned by whisper to immediately validate tokens
2b4a348

qfuxa commited on

ffmpeg timout from 5 to 15s; diarization lag does not stay = 0 at the beginning
2c4b57c

qfuxa commited on

solve https://github.com/QuentinFuxa/whisper_streaming_web/issues/60#issuecomment-2692191781
6ad63d0

qfuxa commited on

update import paths
0cf8b89

qfuxa commited on

undiarized text is assigned to last speaker, with buffer information; traceback is used to format_exc errors
bd15235

qfuxa commited on

// execution for diarization and transcription
b0d49ce

qfuxa commited on

new buffer format
d98de94

qfuxa commited on

diarization now works at word - not chunk - level!
6143582

qfuxa commited on

Enhance diarization logic to improve speaker attribution : corrects several bugs
1ebc0b3

qfuxa commited on

DiartDiarization loaded in asynccontextmanager lifespan
5f66658

qfuxa commited on

Improve speaker handling; update sleep duration and manage speaker transitions more effectively
56a936d

qfuxa commited on

add parameter to disable transcription (only diarization), add time in output
d920423

qfuxa commited on

Implement logging for WebSocket events and FFmpeg process management; remove obsolete test file
d5886b3

qfuxa commited on

handle ffmpeg timeouts > 5s
d7ef93c

Quentin Fuxa commited on

Add get_buffer method to retrieve unvalidated buffer in string format
bd1016f

Quentin Fuxa commited on

optimize ffmpeg buffer reading :round duration to nearest lower 0.1s
022a086

Quentin Fuxa commited on

Use lifespan to load the model just one
6cf18f3

qfuxa commited on

remove logs handler
59ba1f3

qfuxa commited on

all text-related classes now share a common TimedText base class
b81e509

qfuxa commited on

buffer is now transcript.text
9076fea

qfuxa commited on

add logging config to server
df1de84

SilasKieser commited on

Merge branch 'main' into fix-sentencesegmenter
02f90cf

qfuxa commited on

rename to_flush to concatenate_tsw
b7c5736

SilasKieser commited on

move to src
c449242

qfuxa commited on

first speaker is "0" no more None
aafc196

qfuxa commited on

add diarization (beta). Disabled by default
6933483

qfuxa commited on

split whisper_online.py into smaller files
cc68f3b

qfuxa commited on

del online once webstreaming is finished
9cbac96

qfuxa commited on

specify encoding to ensure Python reads file as UTF-8
f52a5ae

wldud5192 commited on

no online conflict when multiple users
aa0ba59

qfuxa commited on

black formating
5fdb08e

SilasKieser commited on

Append full transcription in websocket processing
122368b

qfuxa commited on

Batch unprocessed audio to reduce Whisper streaming calls
c960d15

qfuxa commited on

/ws to /asr to distinguish protocol ws:// from endpoint
1cea20a

qfuxa commited on

better buffer gestion
bee27c6

qfuxa commited on

add fastapi server with live webm to pcm conversion and web page showing both complete transcription and partial transcription
104f7bd

qfuxa commited on