From a22a8257048b72cffe468095b38d6867003208a5 Mon Sep 17 00:00:00 2001 From: Foufure13 Date: Fri, 10 Jan 2025 15:53:17 +0100 Subject: [PATCH] debu stopping complet --- fonction/first_class.py | 114 ++++++++++++++++++-------------- main_auto_loop.py | 24 ++++--- working_bot/2025-01-10_002.json | 1 - working_bot/2025-01-10_002.srt | 76 --------------------- working_bot/2025-01-10_002.tsv | 20 ------ working_bot/2025-01-10_002.txt | 19 ------ working_bot/2025-01-10_002.vtt | 59 ----------------- working_bot/2025-01-10_003.json | 1 + working_bot/2025-01-10_003.srt | 80 ++++++++++++++++++++++ working_bot/2025-01-10_003.tsv | 21 ++++++ working_bot/2025-01-10_003.txt | 20 ++++++ working_bot/2025-01-10_003.vtt | 62 +++++++++++++++++ 12 files changed, 262 insertions(+), 235 deletions(-) delete mode 100644 working_bot/2025-01-10_002.json delete mode 100644 working_bot/2025-01-10_002.srt delete mode 100644 working_bot/2025-01-10_002.tsv delete mode 100644 working_bot/2025-01-10_002.txt delete mode 100644 working_bot/2025-01-10_002.vtt create mode 100644 working_bot/2025-01-10_003.json create mode 100644 working_bot/2025-01-10_003.srt create mode 100644 working_bot/2025-01-10_003.tsv create mode 100644 working_bot/2025-01-10_003.txt create mode 100644 working_bot/2025-01-10_003.vtt diff --git a/fonction/first_class.py b/fonction/first_class.py index 8e2806f..94b4773 100644 --- a/fonction/first_class.py +++ b/fonction/first_class.py @@ -130,8 +130,9 @@ class RecordTwitch: self.verif_record_move() sprint(self.script_name,"yellow", f"wait {intervalle}s for next scan file completed.") time.sleep(intervalle) - except KeyboardInterrupt: - sprint(self.script_name,"red", "STOP LOOP.") + #except KeyboardInterrupt: + except Exception as e: + sprint(self.script_name,"red", "STOP loop_run Error : "+ str(e)) finally: self.running = False # Assurez-vous que le drapeau est désactivé @@ -244,24 +245,25 @@ class RecordTwitch: class Subtitle_translation: def __init__(self, pathjson): + self.script_name = "translation" self.pathjson = pathjson self.reload_json() self.dir_whisperX = "whisperX" self.subtitle = {} self.all_subtitle = "" self.is_running = True - self.loop_timer = 30 + self.loop_timer = 20 self.language = get_value_json("language", self.config) self.dir_record = "record" def stop(self): - hprint("yellow",f"Arrêt loop subtitle") + sprint(self.script_name,"yellow",f"Arrêt loop subtitle") self.is_running = False if self.loop_thread.is_alive(): # self.loop_thread.join() # Attend la fin du thread pour un arrêt propre - hprint("red", "Boucle de traitement arrêtée.") + sprint(self.script_name,"red", "Boucle de traitement arrêtée.") else : - hprint("yellow",f"loop subtitle déja arreté") + sprint(self.script_name,"yellow",f"loop subtitle déja arreté") def reload_json(self): with open(self.pathjson, 'r') as file: @@ -272,7 +274,7 @@ class Subtitle_translation: for file in os.listdir(self.dir_record): file_path = os.path.join(self.dir_record, file) if os.path.isfile(file_path): - hprint("blue",f"File find -> transcribe.") + sprint(self.script_name,"blue",f"File find -> transcribe.") # Exécuter une fonction sur le fichier self.auto_create_subtitle(file) @@ -289,7 +291,7 @@ class Subtitle_translation: :param message: Le message sous forme de chaîne de caractères :return: Le message sans répétitions """ - hprint("yellow", "remove_repetitions start for: \n" +message) + sprint(self.script_name,"yellow", "remove_repetitions start for: \n" +message) words = message.split() # Découpe le texte en mots seen = set() # Pour suivre les mots déjà rencontrés @@ -301,30 +303,30 @@ class Subtitle_translation: result.append(word) seen.add(word) - hprint("green", "remove_repetitions cleaned text : \n" +" ".join(result)) + sprint(self.script_name,"green", "remove_repetitions cleaned text : \n" +" ".join(result)) return " ".join(result)## str this switch def print_allsubtitle(self): os.system('clear') - hprint("yellow", "\n\n All subtitle Print\n ") + sprint(self.script_name,"yellow", "\n\n All subtitle Print\n ") for key, text in self.subtitle.items(): - hprint("yellow", " time "+ str(key)+" = "+ text+" \n\n") + sprint(self.script_name,"yellow", " time "+ str(key)+" = "+ text+" \n\n") def get_lasttext(self): # Vérifie que le dictionnaire n'est pas vide if not self.subtitle: - hprint("red", "Aucun sous-titre disponible.") + sprint(self.script_name,"red", "Aucun sous-titre disponible.") return "" # Récupère la dernière clé et valeur last_time, last_text = list(self.subtitle.items())[-1] - hprint("magenta", f"Dernier sous-titre à {last_time} = {last_text}") + sprint(self.script_name,"magenta", f"Dernier sous-titre à {last_time} = {last_text}") return last_text def auto_create_subtitle(self,file): - hprint("green",f"start auto_create_subtitle") + sprint(self.script_name,"green",f"start auto_create_subtitle") del_file("","*.txt") del_file("","*.srt") del_file("","*.vtt") @@ -335,7 +337,7 @@ class Subtitle_translation: # os.makedirs(subtitle_directory, exist_ok=True) # os.chdir(subtitle_directory) spead_find = "" - hprint("green", "translation : "+file+" ") + sprint(self.script_name,"green", "translation : "+file+" ") # whisperx --language fr --compute_type float32 ../record/final_output_audio.mp3 # record_twitch = ['whisperx', '--language',self.language, '--compute_type','float32', '../'+self.dir_record+"/"+file] #ancienne version @@ -355,23 +357,25 @@ class Subtitle_translation: self.all_subtitle += spead_find+"\n" num_ext = get_current_time() self.subtitle[str(num_ext)] = spead_find - hprint("yellow", "parole du streamer : \n" +spead_find) + sprint(self.script_name,"yellow", "parole du streamer : \n" +spead_find) # attention a No active speech found in audio # os.chdir("../") - console.print("[bold PURPLE] finish create_subtitle [/bold PURPLE]") + sprint(self.script_name,"green","finish create_subtitle") def main_loop(self): time.sleep(45) - hprint("green", "start main boucle_traitement record") + sprint(self.script_name,"green", "start main boucle_traitement record") try: while self.is_running: - hprint("blue",f"wait {self.loop_timer}s loop main translation.") + sprint(self.script_name,"blue",f"wait {self.loop_timer}s loop main translation.") # Attend 'intervalle' secondes avant la prochaine itération self.verif_file_transcribe() time.sleep(self.loop_timer) - except KeyboardInterrupt: - print("Arrêt du script.") + # except KeyboardInterrupt: + # print("Arrêt du script.") + except Exception as e: + sprint(self.script_name,"red", "STOP main_loop Error : "+ str(e)) # #console.print("[bold green]Enregistrement terminé, le programme va se terminer.[/bold green]") @@ -415,26 +419,28 @@ class Subtitle_translation: class IA_generator: def __init__(self,pathjson): + self.script_name = "IA_generator" self.pathjson = pathjson self.reload_json() self.subtitle = {} self.all_subtitle = "" - self.is_running = True - self.loop_timer = 60 + self.ia_running = True + self.loop_timer_ia = 20 self.streamer_word = "" + self.last_streamer_word = None self.index_prompt = 0 self.response_generation = {} self.list_prompt = get_value_json("list_prompt", self.config) self.bad_answer = get_value_json("bad_answer", self.config) def stop(self): - hprint("yellow",f"Arrêt loop subtitle") - self.is_running = False + sprint(self.script_name,"yellow",f"Arrêt loop subtitle") + self.ia_running = False if self.loop_thread.is_alive(): # self.loop_thread.join() # Attend la fin du thread pour un arrêt propre - hprint("red", "Boucle de traitement arrêtée.") + sprint(self.script_name,"red", "Boucle de traitement arrêtée.") else : - hprint("yellow",f"loop subtitle déja arreté") + sprint(self.script_name,"yellow",f"loop subtitle déja arreté") def change_prompt(self): @@ -456,18 +462,18 @@ class IA_generator: def print_allgeneration(self): os.system('clear') - hprint("yellow", "\n\n Print All response_generation \n ") + sprint(self.script_name,"yellow", "\n\n Print All response_generation \n ") for key, text in self.response_generation.items(): - hprint("yellow", " key = "+ str(key)+" = "+ text+" \n\n") + sprint(self.script_name,"yellow", " key = "+ str(key)+" = "+ text+" \n\n") def getlast_generation(self): # return self.response_generation if not self.response_generation: - hprint("red", "Aucun response_generation disponible.") + sprint(self.script_name,"red", "Aucun response_generation disponible.") return "" # Récupère la dernière clé et valeur key, last_generation = list(self.response_generation.items())[-1] - hprint("magenta", f"Dernier response_generation key : {key} = {last_generation}") + sprint(self.script_name,"magenta", f"Dernier response_generation key : {key} = {last_generation}") return last_generation def clear_response(self, text): @@ -480,25 +486,27 @@ class IA_generator: return text def imagine_response(self): - hprint("green",f"start imagine_response\n") - # hprint("magenta",f"streamer_word : \n"+str(self.streamer_word)) - # hprint("magenta",f"streamer_word : \n"+str(len(self.streamer_word[0]))) + sprint(self.script_name,"green",f"start imagine_response\n") + # sprint(self.script_name,"magenta",f"streamer_word : \n"+str(self.streamer_word)) + # sprint(self.script_name,"magenta",f"streamer_word : \n"+str(len(self.streamer_word[0]))) if str(self.streamer_word) == "": - hprint("magenta",f"pas encore de sosu titre on quitte génération") + sprint(self.script_name,"magenta",f"pas encore de sous titre on quitte génération") return prompt_gpt = ['tgpt','-q','-w', '"'+self.list_prompt[self.index_prompt]+' "'+ str(self.streamer_word)+'"'] - hprint("DARKCYAN","index preprompt : "+str(self.index_prompt)+"\n") - hprint("DARKCYAN","\nPrompt demandé : "+str(prompt_gpt)+"\n") + sprint(self.script_name,"DARKCYAN","index preprompt : "+str(self.index_prompt)+"\n") + sprint(self.script_name,"DARKCYAN","\nPrompt demandé : "+str(prompt_gpt)+"\n") process = subprocess.run(prompt_gpt, capture_output=True, text=True, check=False) text_generation = process.stdout.replace("'", "").replace('"', "").replace("\n", "") - # hprint("CYAN","réponse imaginé sans formatage : \n"+text_generation+"\n\n") #debug + # sprint(self.script_name,"CYAN","réponse imaginé sans formatage : \n"+text_generation+"\n\n") #debug textfinal = self.clear_response(text_generation) # nombre_de_mots = len(textfinal.split()) # nombre_de_caracteres = len(textfinal) - hprint("CYAN","réponse imaginé : \n"+textfinal+"\n\n") + + self.last_streamer_word = self.streamer_word + sprint(self.script_name,"CYAN","réponse imaginé : \n"+textfinal+"\n\n") self.change_prompt() key = get_current_time() @@ -512,25 +520,31 @@ class IA_generator: return ''.join(values[-n:]) def main_ask(self, streamer_word_text): - hprint("blue", "imagine_response start") + sprint(self.script_name,"blue", "imagine_response start") self.streamer_word = streamer_word_text imagine_response_thread = Thread(target=self.imagine_response) imagine_response_thread.start() - def main_loop(self): - hprint("blue", "main_loop imagine_response start") - time.sleep(100) + def main_loop_ia(self): + sprint(self.script_name,"blue", "main_loop_ia imagine_response start") + time.sleep(20) try: - while self.is_running: - hprint("blue",f"wait {self.loop_timer}s loop main imagine_response.") - self.imagine_response() - time.sleep(self.loop_timer) - except KeyboardInterrupt: - print("Arrêt du script.") + while self.ia_running: + time.sleep(self.loop_timer_ia) + sprint(self.script_name,"yellow",f"wait {self.loop_timer_ia}s main_loop_ia imagine_response.") + if(self.last_streamer_word != self.streamer_word): + self.imagine_response() + else: + sprint(self.script_name,"yellow",f"génération déja créer") + # except KeyboardInterrupt: + # print("Arrêt du script.") + except Exception as e: + sprint(self.script_name,"red", "STOP main_loop_ia Error : "+ str(e)) def start_main_loop(self): """Lance dans un thread pour ne pas bloquer le code principal.""" - self.loop_thread = threading.Thread(target=self.main_loop) + self.ia_running = True + self.loop_thread = threading.Thread(target=self.main_loop_ia) self.loop_thread.start() # Démarre dans un thread séparé diff --git a/main_auto_loop.py b/main_auto_loop.py index 85de28f..0ee9ffd 100644 --- a/main_auto_loop.py +++ b/main_auto_loop.py @@ -45,6 +45,7 @@ def stop_all(): hprint("blue", "Arrêt d'enregistrement twitch.") recordTw.stop() sb_translation.stop() + ask_text.stop() # signal_handler() def print_help(): @@ -81,6 +82,7 @@ def stop_keyboard_listener(): def on_press(key): global listening_keyboard + global main_loop try: if key == keyboard.Key.f5: hprint("yellow", "Touche 'F5'BOT Active l'écoute clavier") @@ -97,7 +99,7 @@ def on_press(key): hprint("cyan", "Touche 'q' détectée. Fin du programme.") stop_all() main_loop = False - # return False # Cela arrêtera l'écouteur + return False # Cela arrêtera l'écouteur elif key.char == 'c': hprint("cyan", "Touche 'c' clear terminal") clear_screen() @@ -140,6 +142,7 @@ def generation_responce(): #---------------------------------------------------------------------------------------------------- if __name__ == '__main__': + global main_loop main_loop = True #configuration du dossier de travaille @@ -169,8 +172,9 @@ if __name__ == '__main__': sb_translation = Subtitle_translation("../config/config.json") sb_translation.start_main_loop() - #ask_text = IA_generator("../config/config.json") - #ask_text.start_main_loop() + hprint("blue", "start loop IA_generator") + ask_text = IA_generator("../config/config.json") + ask_text.start_main_loop() #controluser = messageTwitch(args.twitchname) @@ -179,13 +183,13 @@ if __name__ == '__main__': listener_thread.start() # mise en thread de l'écoute des appuye touche - #time.sleep(25) - #last_generaton = "" - #while main_loop: - #time.sleep(3) - #hprint("blue", "start main_loop main script") - #text_streamer = sb_translation.get_lasttext() - #ask_text.setnew_streamer_word_text(text_streamer) + time.sleep(25) + last_generaton = "" + while main_loop: + time.sleep(10) + hprint("blue", "start main_loop main script / main_loop = "+str(main_loop)) + text_streamer = sb_translation.get_lasttext() + ask_text.setnew_streamer_word_text(text_streamer) #new_genration = ask_text.getlast_generation() #if new_genration != "" and new_genration != last_generaton: diff --git a/working_bot/2025-01-10_002.json b/working_bot/2025-01-10_002.json deleted file mode 100644 index 1456a62..0000000 --- a/working_bot/2025-01-10_002.json +++ /dev/null @@ -1 +0,0 @@ -{"text": " Arr\u00eate, en vrai ce fight \u00e0 part la fin qui est bizarre, mais... Je suis en 6-6-6, \u00e7a va, genre. 6-6-6, c'est donc toi le saboteur ! L\u00e0 ! Vous avez mal jou\u00e9. Par vous, tu veux dire qui ? L'enti\u00e8ret\u00e9 de la game ? Je suis d'accord. T'es bien toi mon salaud, en vrai. Vu quand je vois la Kalista, comment elle est dans la game. Oui, oui, oui. On va dire dans... 80% des games, je suis bien. Si on enl\u00e8ve la game Tariq, oui. Voil\u00e0, c'est pour \u00e7a que j'ai 80%. T'as compt\u00e9 le nombre des games qu'on a fait aujourd'hui. Soustrait par game de Tariq. Oh oh, je suis dans la... Merde. Je suis d'accord. Je suis d'accord. Je suis d'accord.", "segments": [{"id": 0, "seek": 0, "start": 0.0, "end": 3.18, "text": " Arr\u00eate, en vrai ce fight \u00e0 part la fin qui est bizarre, mais...", "tokens": [50365, 1587, 81, 12943, 11, 465, 17815, 1769, 2092, 1531, 644, 635, 962, 1956, 871, 18265, 11, 2420, 485, 50524], "temperature": 0.0, "avg_logprob": -0.45952383677164715, "compression_ratio": 1.35, "no_speech_prob": 0.33728325366973877}, {"id": 1, "seek": 0, "start": 4.18, "end": 6.24, "text": " Je suis en 6-6-6, \u00e7a va, genre.", "tokens": [50574, 2588, 7624, 465, 1386, 12, 21, 12, 21, 11, 2788, 2773, 11, 11022, 13, 50677], "temperature": 0.0, "avg_logprob": -0.45952383677164715, "compression_ratio": 1.35, "no_speech_prob": 0.33728325366973877}, {"id": 2, "seek": 0, "start": 10.56, "end": 13.24, "text": " 6-6-6, c'est donc toi le saboteur !", "tokens": [50893, 1386, 12, 21, 12, 21, 11, 269, 6, 377, 5926, 15648, 476, 5560, 1370, 374, 2298, 51027], "temperature": 0.0, "avg_logprob": -0.45952383677164715, "compression_ratio": 1.35, "no_speech_prob": 0.33728325366973877}, {"id": 3, "seek": 0, "start": 14.16, "end": 15.38, "text": " L\u00e0 !", "tokens": [51073, 22237, 2298, 51134], "temperature": 0.0, "avg_logprob": -0.45952383677164715, "compression_ratio": 1.35, "no_speech_prob": 0.33728325366973877}, {"id": 4, "seek": 0, "start": 19.080000000000002, "end": 21.36, "text": " Vous avez mal jou\u00e9. Par vous, tu veux dire qui ?", "tokens": [51319, 10802, 11766, 2806, 11110, 526, 13, 3457, 2630, 11, 2604, 16389, 1264, 1956, 2506, 51433], "temperature": 0.0, "avg_logprob": -0.45952383677164715, "compression_ratio": 1.35, "no_speech_prob": 0.33728325366973877}, {"id": 5, "seek": 0, "start": 21.36, "end": 23.38, "text": " L'enti\u00e8ret\u00e9 de la game ? Je suis d'accord.", "tokens": [51433, 441, 6, 23012, 1462, 1505, 526, 368, 635, 1216, 2506, 2588, 7624, 274, 6, 19947, 13, 51534], "temperature": 0.0, "avg_logprob": -0.45952383677164715, "compression_ratio": 1.35, "no_speech_prob": 0.33728325366973877}, {"id": 6, "seek": 0, "start": 25.96, "end": 27.98, "text": " T'es bien toi mon salaud, en vrai.", "tokens": [51663, 314, 6, 279, 3610, 15648, 1108, 1845, 3751, 11, 465, 17815, 13, 51764], "temperature": 0.0, "avg_logprob": -0.45952383677164715, "compression_ratio": 1.35, "no_speech_prob": 0.33728325366973877}, {"id": 7, "seek": 2798, "start": 27.98, "end": 30.88, "text": " Vu quand je vois la Kalista, comment elle est dans la game.", "tokens": [50365, 37703, 6932, 1506, 18297, 635, 12655, 5236, 11, 2871, 8404, 871, 2680, 635, 1216, 13, 50510], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 8, "seek": 2798, "start": 30.88, "end": 31.88, "text": " Oui, oui, oui.", "tokens": [50510, 14005, 11, 14367, 11, 14367, 13, 50560], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 9, "seek": 2798, "start": 33.38, "end": 36.52, "text": " On va dire dans... 80% des games, je suis bien.", "tokens": [50635, 1282, 2773, 1264, 2680, 485, 4688, 4, 730, 2813, 11, 1506, 7624, 3610, 13, 50792], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 10, "seek": 2798, "start": 37.38, "end": 39.38, "text": " Si on enl\u00e8ve la game Tariq, oui.", "tokens": [50835, 4909, 322, 465, 75, 31397, 635, 1216, 314, 3504, 80, 11, 14367, 13, 50935], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 11, "seek": 2798, "start": 39.38, "end": 41.38, "text": " Voil\u00e0, c'est pour \u00e7a que j'ai 80%.", "tokens": [50935, 18677, 11, 269, 6, 377, 2016, 2788, 631, 361, 6, 1301, 4688, 6856, 51035], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 12, "seek": 2798, "start": 41.38, "end": 43.38, "text": " T'as compt\u00e9 le nombre des games qu'on a fait aujourd'hui.", "tokens": [51035, 314, 6, 296, 15660, 526, 476, 13000, 730, 2813, 421, 6, 266, 257, 3887, 14023, 6, 10556, 13, 51135], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 13, "seek": 2798, "start": 43.38, "end": 45.38, "text": " Soustrait par game de Tariq.", "tokens": [51135, 318, 15849, 8645, 971, 1216, 368, 314, 3504, 80, 13, 51235], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 14, "seek": 2798, "start": 50.38, "end": 52.38, "text": " Oh oh, je suis dans la...", "tokens": [51485, 876, 1954, 11, 1506, 7624, 2680, 635, 485, 51585], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 15, "seek": 2798, "start": 52.38, "end": 54.38, "text": " Merde.", "tokens": [51585, 6124, 1479, 13, 51685], "temperature": 0.0, "avg_logprob": -0.4133269945780436, "compression_ratio": 1.5023923444976077, "no_speech_prob": 0.018655717372894287}, {"id": 16, "seek": 5438, "start": 54.38, "end": 56.38, "text": " Je suis d'accord.", "tokens": [50365, 2588, 7624, 274, 6, 19947, 13, 50465], "temperature": 0.0, "avg_logprob": -0.797804143693712, "compression_ratio": 1.206896551724138, "no_speech_prob": 0.3034641742706299}, {"id": 17, "seek": 5438, "start": 57.78, "end": 59.78, "text": " Je suis d'accord.", "tokens": [50535, 2588, 7624, 274, 6, 19947, 13, 50635], "temperature": 0.0, "avg_logprob": -0.797804143693712, "compression_ratio": 1.206896551724138, "no_speech_prob": 0.3034641742706299}, {"id": 18, "seek": 5978, "start": 59.78, "end": 60.78, "text": " Je suis d'accord.", "tokens": [50365, 2588, 7624, 274, 6, 19947, 13, 50415], "temperature": 0.0, "avg_logprob": -0.3928448094262017, "compression_ratio": 0.68, "no_speech_prob": 0.747857928276062}], "language": "fr"} \ No newline at end of file diff --git a/working_bot/2025-01-10_002.srt b/working_bot/2025-01-10_002.srt deleted file mode 100644 index 0093a23..0000000 --- a/working_bot/2025-01-10_002.srt +++ /dev/null @@ -1,76 +0,0 @@ -1 -00:00:00,000 --> 00:00:03,180 -Arrête, en vrai ce fight à part la fin qui est bizarre, mais... - -2 -00:00:04,180 --> 00:00:06,240 -Je suis en 6-6-6, ça va, genre. - -3 -00:00:10,560 --> 00:00:13,240 -6-6-6, c'est donc toi le saboteur ! - -4 -00:00:14,160 --> 00:00:15,380 -Là ! - -5 -00:00:19,080 --> 00:00:21,360 -Vous avez mal joué. Par vous, tu veux dire qui ? - -6 -00:00:21,360 --> 00:00:23,380 -L'entièreté de la game ? Je suis d'accord. - -7 -00:00:25,960 --> 00:00:27,980 -T'es bien toi mon salaud, en vrai. - -8 -00:00:27,980 --> 00:00:30,880 -Vu quand je vois la Kalista, comment elle est dans la game. - -9 -00:00:30,880 --> 00:00:31,880 -Oui, oui, oui. - -10 -00:00:33,380 --> 00:00:36,520 -On va dire dans... 80% des games, je suis bien. - -11 -00:00:37,380 --> 00:00:39,380 -Si on enlève la game Tariq, oui. - -12 -00:00:39,380 --> 00:00:41,380 -Voilà, c'est pour ça que j'ai 80%. - -13 -00:00:41,380 --> 00:00:43,380 -T'as compté le nombre des games qu'on a fait aujourd'hui. - -14 -00:00:43,380 --> 00:00:45,380 -Soustrait par game de Tariq. - -15 -00:00:50,380 --> 00:00:52,380 -Oh oh, je suis dans la... - -16 -00:00:52,380 --> 00:00:54,380 -Merde. - -17 -00:00:54,380 --> 00:00:56,380 -Je suis d'accord. - -18 -00:00:57,780 --> 00:00:59,780 -Je suis d'accord. - -19 -00:00:59,780 --> 00:01:00,780 -Je suis d'accord. - diff --git a/working_bot/2025-01-10_002.tsv b/working_bot/2025-01-10_002.tsv deleted file mode 100644 index 61a67a1..0000000 --- a/working_bot/2025-01-10_002.tsv +++ /dev/null @@ -1,20 +0,0 @@ -start end text -0 3180 Arrête, en vrai ce fight à part la fin qui est bizarre, mais... -4180 6240 Je suis en 6-6-6, ça va, genre. -10560 13240 6-6-6, c'est donc toi le saboteur ! -14160 15380 Là ! -19080 21360 Vous avez mal joué. Par vous, tu veux dire qui ? -21360 23380 L'entièreté de la game ? Je suis d'accord. -25960 27980 T'es bien toi mon salaud, en vrai. -27980 30880 Vu quand je vois la Kalista, comment elle est dans la game. -30880 31880 Oui, oui, oui. -33380 36520 On va dire dans... 80% des games, je suis bien. -37380 39380 Si on enlève la game Tariq, oui. -39380 41380 Voilà, c'est pour ça que j'ai 80%. -41380 43380 T'as compté le nombre des games qu'on a fait aujourd'hui. -43380 45380 Soustrait par game de Tariq. -50380 52380 Oh oh, je suis dans la... -52380 54380 Merde. -54380 56380 Je suis d'accord. -57780 59780 Je suis d'accord. -59780 60780 Je suis d'accord. diff --git a/working_bot/2025-01-10_002.txt b/working_bot/2025-01-10_002.txt deleted file mode 100644 index db54e35..0000000 --- a/working_bot/2025-01-10_002.txt +++ /dev/null @@ -1,19 +0,0 @@ -Arrête, en vrai ce fight à part la fin qui est bizarre, mais... -Je suis en 6-6-6, ça va, genre. -6-6-6, c'est donc toi le saboteur ! -Là ! -Vous avez mal joué. Par vous, tu veux dire qui ? -L'entièreté de la game ? Je suis d'accord. -T'es bien toi mon salaud, en vrai. -Vu quand je vois la Kalista, comment elle est dans la game. -Oui, oui, oui. -On va dire dans... 80% des games, je suis bien. -Si on enlève la game Tariq, oui. -Voilà, c'est pour ça que j'ai 80%. -T'as compté le nombre des games qu'on a fait aujourd'hui. -Soustrait par game de Tariq. -Oh oh, je suis dans la... -Merde. -Je suis d'accord. -Je suis d'accord. -Je suis d'accord. diff --git a/working_bot/2025-01-10_002.vtt b/working_bot/2025-01-10_002.vtt deleted file mode 100644 index 1138cb8..0000000 --- a/working_bot/2025-01-10_002.vtt +++ /dev/null @@ -1,59 +0,0 @@ -WEBVTT - -00:00.000 --> 00:03.180 -Arrête, en vrai ce fight à part la fin qui est bizarre, mais... - -00:04.180 --> 00:06.240 -Je suis en 6-6-6, ça va, genre. - -00:10.560 --> 00:13.240 -6-6-6, c'est donc toi le saboteur ! - -00:14.160 --> 00:15.380 -Là ! - -00:19.080 --> 00:21.360 -Vous avez mal joué. Par vous, tu veux dire qui ? - -00:21.360 --> 00:23.380 -L'entièreté de la game ? Je suis d'accord. - -00:25.960 --> 00:27.980 -T'es bien toi mon salaud, en vrai. - -00:27.980 --> 00:30.880 -Vu quand je vois la Kalista, comment elle est dans la game. - -00:30.880 --> 00:31.880 -Oui, oui, oui. - -00:33.380 --> 00:36.520 -On va dire dans... 80% des games, je suis bien. - -00:37.380 --> 00:39.380 -Si on enlève la game Tariq, oui. - -00:39.380 --> 00:41.380 -Voilà, c'est pour ça que j'ai 80%. - -00:41.380 --> 00:43.380 -T'as compté le nombre des games qu'on a fait aujourd'hui. - -00:43.380 --> 00:45.380 -Soustrait par game de Tariq. - -00:50.380 --> 00:52.380 -Oh oh, je suis dans la... - -00:52.380 --> 00:54.380 -Merde. - -00:54.380 --> 00:56.380 -Je suis d'accord. - -00:57.780 --> 00:59.780 -Je suis d'accord. - -00:59.780 --> 01:00.780 -Je suis d'accord. - diff --git a/working_bot/2025-01-10_003.json b/working_bot/2025-01-10_003.json new file mode 100644 index 0000000..ac4e9c6 --- /dev/null +++ b/working_bot/2025-01-10_003.json @@ -0,0 +1 @@ +{"text": " Il est ok, il est pas tr\u00e8s bien Mais j'ai l'impression qu'il y a beaucoup d'AP mag D'AP bot actuellement C'est super OP Le regen, on a les d\u00e9g\u00e2ts Non pas les d\u00e9g\u00e2ts Le flashing \u00e9tait useless Il peut temporiser un peu Il peut temporiser un peu Il monte son vrai niveau \u00e9meraude 1 Chape l'\u00e9meraude 1, pas choqu\u00e9 J'arrive \u00e0 prendre la tour au bot Je vais avoir que Waii en face de moi Swain aussi, mais bon, je pense pas qu'ils soient rest\u00e9s tous les deux En vrai j'ai mon ignite, j'ai plein de trucs Donc je peux d\u00e9lai Waii C'est peut-\u00eatre ok Je vais prendre la tour l\u00e0 Il n'y a pas encore un up Il est bien", "segments": [{"id": 0, "seek": 0, "start": 0.0, "end": 1.46, "text": " Il est ok, il est pas tr\u00e8s bien", "tokens": [50365, 4416, 871, 3133, 11, 1930, 871, 1736, 5732, 3610, 50438], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 1, "seek": 0, "start": 1.46, "end": 3.48, "text": " Mais j'ai l'impression qu'il y a beaucoup d'AP mag", "tokens": [50438, 6313, 361, 6, 1301, 287, 6, 36107, 421, 6, 388, 288, 257, 8796, 274, 6, 4715, 2258, 50539], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 2, "seek": 0, "start": 3.48, "end": 4.86, "text": " D'AP bot actuellement", "tokens": [50539, 413, 6, 4715, 10592, 605, 31816, 50608], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 3, "seek": 0, "start": 4.86, "end": 7.26, "text": " C'est super OP", "tokens": [50608, 383, 6, 377, 1687, 23324, 50728], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 4, "seek": 0, "start": 7.26, "end": 11.540000000000001, "text": " Le regen, on a les d\u00e9g\u00e2ts", "tokens": [50728, 1456, 33909, 11, 322, 257, 1512, 2795, 70, 3201, 1373, 50942], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 5, "seek": 0, "start": 11.540000000000001, "end": 12.58, "text": " Non pas les d\u00e9g\u00e2ts", "tokens": [50942, 8774, 1736, 1512, 2795, 70, 3201, 1373, 50994], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 6, "seek": 0, "start": 12.58, "end": 15.84, "text": " Le flashing \u00e9tait useless", "tokens": [50994, 1456, 31049, 11806, 14115, 51157], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 7, "seek": 0, "start": 15.84, "end": 19.28, "text": " Il peut temporiser un peu", "tokens": [51157, 4416, 5977, 8219, 6694, 517, 5604, 51329], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 8, "seek": 0, "start": 19.28, "end": 20.240000000000002, "text": " Il peut temporiser un peu", "tokens": [51329, 4416, 5977, 8219, 6694, 517, 5604, 51377], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 9, "seek": 0, "start": 20.240000000000002, "end": 29.080000000000002, "text": " Il monte son vrai niveau \u00e9meraude 1", "tokens": [51377, 4416, 35437, 1872, 17815, 19144, 1136, 35984, 2303, 502, 51819], "temperature": 0.0, "avg_logprob": -0.23557162520909072, "compression_ratio": 1.4921465968586387, "no_speech_prob": 0.3564457595348358}, {"id": 10, "seek": 2908, "start": 29.08, "end": 32.5, "text": " Chape l'\u00e9meraude 1, pas choqu\u00e9", "tokens": [50365, 12374, 494, 287, 6, 526, 35984, 2303, 502, 11, 1736, 1586, 16412, 50536], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 11, "seek": 2908, "start": 32.5, "end": 36.62, "text": " J'arrive \u00e0 prendre la tour au bot", "tokens": [50536, 508, 6, 47614, 1531, 16566, 635, 3512, 1609, 10592, 50742], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 12, "seek": 2908, "start": 36.62, "end": 39.12, "text": " Je vais avoir que Waii en face de moi", "tokens": [50742, 2588, 9369, 10853, 631, 343, 1301, 72, 465, 1851, 368, 7748, 50867], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 13, "seek": 2908, "start": 39.12, "end": 41.2, "text": " Swain aussi, mais bon, je pense pas qu'ils soient rest\u00e9s tous les deux", "tokens": [50867, 3926, 491, 6212, 11, 2420, 4428, 11, 1506, 11209, 1736, 421, 6, 4174, 42711, 1472, 2191, 8317, 1512, 8208, 50971], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 14, "seek": 2908, "start": 41.2, "end": 43.66, "text": " En vrai j'ai mon ignite, j'ai plein de trucs", "tokens": [50971, 2193, 17815, 361, 6, 1301, 1108, 49609, 11, 361, 6, 1301, 21088, 368, 33505, 51094], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 15, "seek": 2908, "start": 43.66, "end": 44.98, "text": " Donc je peux d\u00e9lai Waii", "tokens": [51094, 7477, 1506, 14844, 2795, 875, 72, 343, 1301, 72, 51160], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 16, "seek": 2908, "start": 44.98, "end": 47.32, "text": " C'est peut-\u00eatre ok", "tokens": [51160, 383, 6, 377, 5977, 12, 9498, 3133, 51277], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 17, "seek": 2908, "start": 47.32, "end": 54.54, "text": " Je vais prendre la tour l\u00e0", "tokens": [51277, 2588, 9369, 16566, 635, 3512, 3684, 51638], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 18, "seek": 2908, "start": 54.54, "end": 57.0, "text": " Il n'y a pas encore un up", "tokens": [51638, 4416, 297, 6, 88, 257, 1736, 10122, 517, 493, 51761], "temperature": 0.0, "avg_logprob": -0.25340826758022966, "compression_ratio": 1.4524886877828054, "no_speech_prob": 0.000249222299316898}, {"id": 19, "seek": 5700, "start": 57.0, "end": 59.98, "text": " Il est bien", "tokens": [50365, 4416, 871, 3610, 50514], "temperature": 0.0, "avg_logprob": -0.3805150588353475, "compression_ratio": 0.5789473684210527, "no_speech_prob": 0.19176407158374786}], "language": "fr"} \ No newline at end of file diff --git a/working_bot/2025-01-10_003.srt b/working_bot/2025-01-10_003.srt new file mode 100644 index 0000000..6006c7f --- /dev/null +++ b/working_bot/2025-01-10_003.srt @@ -0,0 +1,80 @@ +1 +00:00:00,000 --> 00:00:01,460 +Il est ok, il est pas très bien + +2 +00:00:01,460 --> 00:00:03,480 +Mais j'ai l'impression qu'il y a beaucoup d'AP mag + +3 +00:00:03,480 --> 00:00:04,860 +D'AP bot actuellement + +4 +00:00:04,860 --> 00:00:07,260 +C'est super OP + +5 +00:00:07,260 --> 00:00:11,540 +Le regen, on a les dégâts + +6 +00:00:11,540 --> 00:00:12,580 +Non pas les dégâts + +7 +00:00:12,580 --> 00:00:15,840 +Le flashing était useless + +8 +00:00:15,840 --> 00:00:19,280 +Il peut temporiser un peu + +9 +00:00:19,280 --> 00:00:20,240 +Il peut temporiser un peu + +10 +00:00:20,240 --> 00:00:29,080 +Il monte son vrai niveau émeraude 1 + +11 +00:00:29,080 --> 00:00:32,500 +Chape l'émeraude 1, pas choqué + +12 +00:00:32,500 --> 00:00:36,620 +J'arrive à prendre la tour au bot + +13 +00:00:36,620 --> 00:00:39,120 +Je vais avoir que Waii en face de moi + +14 +00:00:39,120 --> 00:00:41,200 +Swain aussi, mais bon, je pense pas qu'ils soient restés tous les deux + +15 +00:00:41,200 --> 00:00:43,660 +En vrai j'ai mon ignite, j'ai plein de trucs + +16 +00:00:43,660 --> 00:00:44,980 +Donc je peux délai Waii + +17 +00:00:44,980 --> 00:00:47,320 +C'est peut-être ok + +18 +00:00:47,320 --> 00:00:54,540 +Je vais prendre la tour là + +19 +00:00:54,540 --> 00:00:57,000 +Il n'y a pas encore un up + +20 +00:00:57,000 --> 00:00:59,980 +Il est bien + diff --git a/working_bot/2025-01-10_003.tsv b/working_bot/2025-01-10_003.tsv new file mode 100644 index 0000000..8aeae07 --- /dev/null +++ b/working_bot/2025-01-10_003.tsv @@ -0,0 +1,21 @@ +start end text +0 1460 Il est ok, il est pas très bien +1460 3480 Mais j'ai l'impression qu'il y a beaucoup d'AP mag +3480 4860 D'AP bot actuellement +4860 7260 C'est super OP +7260 11540 Le regen, on a les dégâts +11540 12580 Non pas les dégâts +12580 15840 Le flashing était useless +15840 19280 Il peut temporiser un peu +19280 20240 Il peut temporiser un peu +20240 29080 Il monte son vrai niveau émeraude 1 +29080 32500 Chape l'émeraude 1, pas choqué +32500 36620 J'arrive à prendre la tour au bot +36620 39120 Je vais avoir que Waii en face de moi +39120 41200 Swain aussi, mais bon, je pense pas qu'ils soient restés tous les deux +41200 43660 En vrai j'ai mon ignite, j'ai plein de trucs +43660 44980 Donc je peux délai Waii +44980 47320 C'est peut-être ok +47320 54540 Je vais prendre la tour là +54540 57000 Il n'y a pas encore un up +57000 59980 Il est bien diff --git a/working_bot/2025-01-10_003.txt b/working_bot/2025-01-10_003.txt new file mode 100644 index 0000000..a89d8c7 --- /dev/null +++ b/working_bot/2025-01-10_003.txt @@ -0,0 +1,20 @@ +Il est ok, il est pas très bien +Mais j'ai l'impression qu'il y a beaucoup d'AP mag +D'AP bot actuellement +C'est super OP +Le regen, on a les dégâts +Non pas les dégâts +Le flashing était useless +Il peut temporiser un peu +Il peut temporiser un peu +Il monte son vrai niveau émeraude 1 +Chape l'émeraude 1, pas choqué +J'arrive à prendre la tour au bot +Je vais avoir que Waii en face de moi +Swain aussi, mais bon, je pense pas qu'ils soient restés tous les deux +En vrai j'ai mon ignite, j'ai plein de trucs +Donc je peux délai Waii +C'est peut-être ok +Je vais prendre la tour là +Il n'y a pas encore un up +Il est bien diff --git a/working_bot/2025-01-10_003.vtt b/working_bot/2025-01-10_003.vtt new file mode 100644 index 0000000..a8ccebc --- /dev/null +++ b/working_bot/2025-01-10_003.vtt @@ -0,0 +1,62 @@ +WEBVTT + +00:00.000 --> 00:01.460 +Il est ok, il est pas très bien + +00:01.460 --> 00:03.480 +Mais j'ai l'impression qu'il y a beaucoup d'AP mag + +00:03.480 --> 00:04.860 +D'AP bot actuellement + +00:04.860 --> 00:07.260 +C'est super OP + +00:07.260 --> 00:11.540 +Le regen, on a les dégâts + +00:11.540 --> 00:12.580 +Non pas les dégâts + +00:12.580 --> 00:15.840 +Le flashing était useless + +00:15.840 --> 00:19.280 +Il peut temporiser un peu + +00:19.280 --> 00:20.240 +Il peut temporiser un peu + +00:20.240 --> 00:29.080 +Il monte son vrai niveau émeraude 1 + +00:29.080 --> 00:32.500 +Chape l'émeraude 1, pas choqué + +00:32.500 --> 00:36.620 +J'arrive à prendre la tour au bot + +00:36.620 --> 00:39.120 +Je vais avoir que Waii en face de moi + +00:39.120 --> 00:41.200 +Swain aussi, mais bon, je pense pas qu'ils soient restés tous les deux + +00:41.200 --> 00:43.660 +En vrai j'ai mon ignite, j'ai plein de trucs + +00:43.660 --> 00:44.980 +Donc je peux délai Waii + +00:44.980 --> 00:47.320 +C'est peut-être ok + +00:47.320 --> 00:54.540 +Je vais prendre la tour là + +00:54.540 --> 00:57.000 +Il n'y a pas encore un up + +00:57.000 --> 00:59.980 +Il est bien +