add demo video
This commit is contained in:
parent
46b0f5abab
commit
d1f5697169
|
@ -1,6 +1,9 @@
|
|||
A streaming digital human based on the Ernerf model, realize audio video synchronous dialogue. It can basically achieve commercial effects.
|
||||
基于ernerf模型的流式数字人,实现音视频同步对话。基本可以达到商用效果
|
||||
|
||||
<video id="video" controls="" preload="none" poster="封面">
|
||||
<source id="mp4" src="assets/demo.mp4" type="video/mp4">
|
||||
</video>
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
Binary file not shown.
|
@ -64,7 +64,7 @@ class NeRFReal:
|
|||
sc.stream_height = self.H
|
||||
sc.stream_fps = fps
|
||||
sc.stream_bitrate = 1000000
|
||||
sc.stream_profile = 'main' #'high444' # 'main'
|
||||
sc.stream_profile = 'baseline' #'high444' # 'main'
|
||||
sc.audio_channel = 1
|
||||
sc.sample_rate = 16000
|
||||
sc.stream_server = opt.push_url
|
||||
|
@ -178,7 +178,7 @@ class NeRFReal:
|
|||
for _ in range(2):
|
||||
self.asr.run_step()
|
||||
self.test_step()
|
||||
delay = 0.04 - (time.time() - t) #40ms
|
||||
if delay > 0:
|
||||
time.sleep(delay)
|
||||
# delay = 0.04 - (time.time() - t) #40ms
|
||||
# if delay > 0:
|
||||
# time.sleep(delay)
|
||||
|
Loading…
Reference in New Issue