From 0a2e99168ee3727dcdf50009225ac0e558a4dc14 Mon Sep 17 00:00:00 2001 From: seven Date: Fri, 28 Mar 2025 17:26:25 +0800 Subject: [PATCH] add --- main/xiaozhi-server/core/providers/tts/linkerai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xiaozhi-server/core/providers/tts/linkerai.py b/main/xiaozhi-server/core/providers/tts/linkerai.py index 1087887a6..08fa9667f 100644 --- a/main/xiaozhi-server/core/providers/tts/linkerai.py +++ b/main/xiaozhi-server/core/providers/tts/linkerai.py @@ -77,9 +77,9 @@ class TTSProvider(TTSProviderBase): with open(audio_file_path,'rb') as f: data = f.read(10) if data.startswith(b'http_post'): + duration = 100 with open(audio_file_path,encoding='utf-8') as f: _ = f.read(10) - duration = 100 code = [] for line in f.readlines(): code.append(json.loads(line.strip()))