some fixes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import io
|
||||
import json
|
||||
from google import genai
|
||||
from google.genai import types
|
||||
from pydub import AudioSegment
|
||||
@@ -23,8 +22,6 @@ class TTSAgent:
|
||||
frame_rate=24000,
|
||||
channels=1
|
||||
)
|
||||
|
||||
# Экспортируем как .ogg с кодеком opus
|
||||
ogg_io = io.BytesIO()
|
||||
audio.export(ogg_io, format="ogg", codec="libopus")
|
||||
ogg_bytes = ogg_io.getvalue()
|
||||
|
||||
Reference in New Issue
Block a user