def METHOD_NAME(url, slug, status, lang, filepath):
    if LIVE_VOSK_MODEL and LIVE_VOSK_MODEL.get(lang):
        model = LIVE_VOSK_MODEL.get(lang).get("model")
        if LIVE_CELERY_TRANSCRIPTION:
            if status:
                task_start_live_transcription.delay(url, slug, model, filepath)
            else:
                vtt = WebVTT()
                vtt.save(filepath)
                task_end_live_transcription.delay(slug)
        else:
            if status:
                # print("main process")
                t = threading.Thread(target=transcribe, args=(url, slug, model, filepath))
                t.setDaemon(True)
                t.start()
                # get id of the thread
                threads[slug] = t.ident
            else:
                vtt = WebVTT()
                vtt.save(filepath)
                stop_thread = threads.get(slug, None)
                if stop_thread:
                    threads_to_stop.append(stop_thread)
                    # print("stopping thread")