initial upload attempt

initial upload attempt
This commit is contained in:
erew123 committed 2024-06-06 21:40:12 +01:00
1 parent 84c19ed5a9
commit 9fd928f6e7
527 files changed
+37359

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import sys
import asyncio
import edge_tts
async def main():
text = sys.argv[1]
voice = sys.argv[2]
rate = int(sys.argv[3])
output_file = sys.argv[4]
rates = f"+{rate}%" if rate >= 0 else f"{rate}%"
await edge_tts.Communicate(text, voice, rate=rates).save(output_file)
print(f"TTS with {voice} completed. Output TTS file: '{output_file}'")
if __name__ == "__main__":
asyncio.run(main())