From 58b373300e919599a85677958c0f97c6664a7e14 Mon Sep 17 00:00:00 2001 From: Tom Moroney Date: Tue, 26 Nov 2024 20:00:22 +0000 Subject: [PATCH] Removed force order and added ssl env --- Mac-Server/transcription-server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mac-Server/transcription-server.py b/Mac-Server/transcription-server.py index 8cbed1a..b55da13 100644 --- a/Mac-Server/transcription-server.py +++ b/Mac-Server/transcription-server.py @@ -2,6 +2,8 @@ import sys import os import appdirs +import certifi +os.environ['SSL_CERT_FILE'] = certifi.where() class Unbuffered(object): def __init__(self, stream): @@ -158,7 +160,7 @@ def inference(audio, **kwargs) -> dict: def transcribe_audio(audio_file, kwargs, max_words, max_chars): print("Starting transcription...") - whisperResult = stable_whisper.transcribe_any(inference, audio_file, inference_kwargs = kwargs, vad=True, force_order=True) + whisperResult = stable_whisper.transcribe_any(inference, audio_file, inference_kwargs = kwargs, vad=True) whisperResult.split_by_length(max_words=max_words, max_chars=max_chars) return whisperResult.to_dict()