合并多个更新 (#68)

* 🐳 chore: 优化打包速度

使用国内镜像

* 🎈 perf: 优化打包速度

注释日志的时间信息

* 🐳 chore: 改用docker hub

* 🐎 ci(ci): 自动打包docker

* 🐳 chore: 更新文档

* 🎈 perf: 改用opuslib_next

* 🌈 style: 统一log
This commit is contained in:
kalicyh
2025-02-18 21:33:40 +08:00
committed by kalicyh
parent cf8f2f83a0
commit 55981ec764
11 changed files with 96 additions and 26 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from config.logger import setup_logging
import opuslib
import opuslib_next
import time
import numpy as np
import torch
@@ -24,7 +24,7 @@ class SileroVAD(VAD):
force_reload=False)
(get_speech_timestamps, _, _, _, _) = self.utils
self.decoder = opuslib.Decoder(16000, 1)
self.decoder = opuslib_next.Decoder(16000, 1)
self.vad_threshold = config.get("threshold")
self.silence_threshold_ms = config.get("min_silence_duration_ms")
@@ -59,7 +59,7 @@ class SileroVAD(VAD):
conn.client_have_voice_last_time = time.time() * 1000
return client_have_voice
except opuslib.OpusError as e:
except opuslib_next.OpusError as e:
logger.bind(tag=TAG).info(f"解码错误: {e}")
except Exception as e:
logger.bind(tag=TAG).error(f"Error processing audio packet: {e}")