From 233d46f45ede0d9f4623f6f56fd7a10888219609 Mon Sep 17 00:00:00 2001 From: lihengzhong Date: Thu, 11 Jan 2024 11:08:04 +0800 Subject: [PATCH] remove log --- app.py | 3 ++- asrreal.py | 4 ++-- nerfreal.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index b6cc141..7898eb9 100644 --- a/app.py +++ b/app.py @@ -45,8 +45,9 @@ def txt_to_audio(text_): #audio_path = 'data/audio/aud_0.wav' voicename = "zh-CN-YunxiaNeural" text = text_ + t = time.time() asyncio.get_event_loop().run_until_complete(main(voicename,text,nerfreal)) - #audio_process(audio_path) + print('-------tts time: ',time.time()-t) @sockets.route('/humanecho') def echo_socket(ws): diff --git a/asrreal.py b/asrreal.py index 3068acd..339d2eb 100644 --- a/asrreal.py +++ b/asrreal.py @@ -231,8 +231,8 @@ class ASR: self.feat_buffer_idx = (self.feat_buffer_idx + 1) % self.feat_buffer_size # very naive, just concat the text output. - if text != '': - self.text = self.text + ' ' + text + #if text != '': + # self.text = self.text + ' ' + text # will only run once at ternimation if self.terminated: diff --git a/nerfreal.py b/nerfreal.py index 81e924d..3b86092 100644 --- a/nerfreal.py +++ b/nerfreal.py @@ -71,7 +71,7 @@ class NeRFReal: self.streamer = Streamer() self.streamer.init(sc) - self.streamer.enable_av_debug_log() + #self.streamer.enable_av_debug_log() ''' video_path = 'video_stream'