chore: auto-commit from dashboard
This commit is contained in:
@@ -913,6 +913,7 @@ def create_bot(config: Config) -> discord.Client:
|
||||
@app_commands.describe(
|
||||
voce="Voce (M1-M5 masculin, F1-F5 feminin; default M2)",
|
||||
text_sau_url="Text direct, URL articol, sau gol pentru ultimul răspuns Echo",
|
||||
rezumat="Dacă să facă Claude rezumat înainte de TTS (doar pentru URL)",
|
||||
)
|
||||
@app_commands.choices(
|
||||
voce=[
|
||||
@@ -932,6 +933,7 @@ def create_bot(config: Config) -> discord.Client:
|
||||
interaction: discord.Interaction,
|
||||
voce: str | None = None,
|
||||
text_sau_url: str | None = None,
|
||||
rezumat: bool = False,
|
||||
) -> None:
|
||||
await interaction.response.defer()
|
||||
args: list[str] = []
|
||||
@@ -939,6 +941,8 @@ def create_bot(config: Config) -> discord.Client:
|
||||
args.append(voce)
|
||||
if text_sau_url:
|
||||
args.extend(text_sau_url.split())
|
||||
if rezumat:
|
||||
args.append("rezumat")
|
||||
result = await asyncio.to_thread(fast_dispatch, "audio", args)
|
||||
if result and result.startswith("__AUDIO__:"):
|
||||
wav_path = result[len("__AUDIO__:"):]
|
||||
|
||||
Reference in New Issue
Block a user