Skip to content

Commit

Permalink
Make default transcription whisper tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
ibevers committed Aug 29, 2024
1 parent c8a9080 commit 8442083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/b2aiprep/prepare/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def wav_to_features(wav_path: Path):
features["mfcc"] = extract_mfcc_from_audios([audio])[0]
features["sample_rate"] = audio.sampling_rate
features["opensmile"] = extract_opensmile_features_from_audios([audio])[0]
speech_to_text_model = HFModel(path_or_uri="openai/whisper-large")
speech_to_text_model = HFModel(path_or_uri="openai/whisper-tiny")
features["transcription"] = transcribe_audios(audios=[audio], model=speech_to_text_model)[0]
logging.disable(logging.NOTSET)
_logger.setLevel(logging.INFO)
Expand Down

0 comments on commit 8442083

Please sign in to comment.