Add real-time speech recognition example for SenseVoice. (#2197)

This commit is contained in:
Fangjun Kuang
2025-05-10 00:50:40 +08:00
committed by GitHub
parent 4a833a7547
commit 53518efd2f
2 changed files with 242 additions and 2 deletions

View File

@@ -1,10 +1,10 @@
# Copyright (c) 2025 Xiaomi Corporation
import os
from time import gmtime, strftime
from time import localtime, strftime
def get_current_time():
return strftime("%Y-%m-%d %H:%M:%S", gmtime())
return strftime("%Y-%m-%d %H:%M:%S", localtime())
def clear_console():