From 0bda49279ec80187d49a922ff2a47141ffb2fd8f Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 30 May 2023 19:01:56 -0700 Subject: Finish translation for Western European language speakers NLLB needs its input to be split up into sentences. I use the sentence_splitter Python package to do this. It supports ~20 Western European languages, but notably, no Asian languages. * Sort spoken language list. English is still at the top. * Remove 'Translation source' dropdown. Infer this from the spoken language. * Add lang_compat.py to map language codes between the various libraries (whisper, nllb, sentence_splitter). * Fix bug where old text would appear in textbox when you first bring it up. --- Scripts/requirements.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Scripts/requirements.txt') diff --git a/Scripts/requirements.txt b/Scripts/requirements.txt index 5500a91..647e942 100644 --- a/Scripts/requirements.txt +++ b/Scripts/requirements.txt @@ -11,4 +11,5 @@ pyaudio python-osc playsound==1.2.2 pyyaml +sentence_splitter transformers>=4.21.0 -- cgit v1.2.3