Skip to content

Commit

Permalink
model speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingFathead committed Apr 24, 2024
1 parent 1a60f9d commit dc2752e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/transcription_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,17 @@ def normalize_youtube_url(url):
# Define a dictionary to map models to their relative speeds
model_speeds = {
'tiny': 32,
'tiny.en': 32,
'base': 16,
'base.en': 16,
'small': 6,
'small.en': 6,
'medium': 2,
'large': 1
'medium.en': 2,
'large': 1,
'large-v1': 1,
'large-v2': 1,
'large-v3': 1
}

def estimate_transcription_time(model, audio_duration):
Expand Down

0 comments on commit dc2752e

Please sign in to comment.