This commit is contained in:
seven 2025-03-28 17:26:25 +08:00
parent 1a2b2569ab
commit 0a2e99168e

View file

@ -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()))