mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-06 20:42:43 +08:00
调整语音文件大小限制,超出 10MB 时禁止识别
This commit is contained in:
@@ -84,7 +84,7 @@ class OpenAIVoiceProvider(VoiceProvider):
|
|||||||
if not content:
|
if not content:
|
||||||
return None
|
return None
|
||||||
if len(content) > self.MAX_TRANSCRIBE_BYTES:
|
if len(content) > self.MAX_TRANSCRIBE_BYTES:
|
||||||
raise ValueError("语音文件超过 25MB,无法识别")
|
raise ValueError("语音文件超过 10MB,无法识别")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client = self._get_client("stt")
|
client = self._get_client("stt")
|
||||||
|
|||||||
Reference in New Issue
Block a user