This commit is contained in:
seven 2025-03-28 16:39:27 +08:00
parent 634e3c7625
commit b2d37120ac

View file

@ -73,7 +73,7 @@ class TTSProvider(TTSProviderBase):
def audio_to_opus_data(self, audio_file_path): def audio_to_opus_data(self, audio_file_path):
data = b'' data = b''
if os.path.exists('%s.linkerai'%audio_file_path): if os.path.exists(audio_file_path):
with open(audio_file_path,encoding='utf-8') as f: with open(audio_file_path,encoding='utf-8') as f:
data = f.read(10) data = f.read(10)
if data.startswith('http_post'): if data.startswith('http_post'):