remove log

This commit is contained in:
lihengzhong 2024-01-11 11:08:04 +08:00
parent 51d36ea018
commit 233d46f45e
3 changed files with 5 additions and 4 deletions

3
app.py
View File

@ -45,8 +45,9 @@ def txt_to_audio(text_):
#audio_path = 'data/audio/aud_0.wav' #audio_path = 'data/audio/aud_0.wav'
voicename = "zh-CN-YunxiaNeural" voicename = "zh-CN-YunxiaNeural"
text = text_ text = text_
t = time.time()
asyncio.get_event_loop().run_until_complete(main(voicename,text,nerfreal)) asyncio.get_event_loop().run_until_complete(main(voicename,text,nerfreal))
#audio_process(audio_path) print('-------tts time: ',time.time()-t)
@sockets.route('/humanecho') @sockets.route('/humanecho')
def echo_socket(ws): def echo_socket(ws):

View File

@ -231,8 +231,8 @@ class ASR:
self.feat_buffer_idx = (self.feat_buffer_idx + 1) % self.feat_buffer_size self.feat_buffer_idx = (self.feat_buffer_idx + 1) % self.feat_buffer_size
# very naive, just concat the text output. # very naive, just concat the text output.
if text != '': #if text != '':
self.text = self.text + ' ' + text # self.text = self.text + ' ' + text
# will only run once at ternimation # will only run once at ternimation
if self.terminated: if self.terminated:

View File

@ -71,7 +71,7 @@ class NeRFReal:
self.streamer = Streamer() self.streamer = Streamer()
self.streamer.init(sc) self.streamer.init(sc)
self.streamer.enable_av_debug_log() #self.streamer.enable_av_debug_log()
''' '''
video_path = 'video_stream' video_path = 'video_stream'