mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-28 13:37:45 +00:00
Fix write
This commit is contained in:
parent
f489bf90d6
commit
627967ceb8
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ async def toggle(number: int) -> str:
|
|||
|
||||
@app.get("/speak")
|
||||
async def speak(text: str) -> str:
|
||||
with open("speak.txt") as f:
|
||||
with open("speak.txt", "w") as f:
|
||||
f.write(text)
|
||||
|
||||
ret = os.system(f"gtts-cli --file speak.txt --lang tr --output text.mp3; pw-play text.mp3")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue