Skip to content

Commit

Permalink
Reduce default batch size from 16 to 4 in WhisperDeployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Movchan committed Nov 15, 2024
1 parent eb8403f commit e8126a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aana/deployments/whisper_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async def transcribe_in_chunks(
self,
audio: Audio,
vad_segments: list[VadSegment] | None = None,
batch_size: int = 16,
batch_size: int = 4,
params: BatchedWhisperParams | None = None,
) -> AsyncGenerator[WhisperOutput, None]:
"""Transcribe a single audio by segmenting it into chunks (4x faster) in streaming mode.
Expand Down

0 comments on commit e8126a6

Please sign in to comment.