Giter Site home page Giter Site logo

dgnsrekt / discorgeous Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 207 KB

Discord + GTTS = a discord bot that sends google text to speech voice messages to discord voice channels.

License: MIT License

Python 100.00%
discord bot gtts google-text-to-speech python python3 discord-bot music-bot discord-server discord-py

discorgeous's Issues

Need to catch.

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/gtts/tts.py", line 218, in write_to_fp
r.raise_for_status()
File "/usr/local/lib/python3.6/dist-packages/requests/models.py", line 939, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://translate.google.com/translate_tts?ie=UTF-8&q=DTA%2FBTC%2C+fdbi+breakout%2C+four+hour+GREEN++candle%2C+inside+cloud%2C+true_risk.&tl=en-au&ttsspeed=1&total=1&idx=0&client=tw-ob&textlen=73&tk=389205.226589

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/Discorgeous/discorgeous/main.py", line 12, in
main()
File "/root/Discorgeous/discorgeous/main.py", line 8, in main
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/root/Discorgeous/discorgeous/cli.py", line 136, in server
server.run()
File "/root/Discorgeous/discorgeous/server.py", line 103, in run
self.loop.run_until_complete(asyncio.gather(client_bot_coro, server_coro, gtts_coro))
File "/usr/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
return future.result()
File "/root/Discorgeous/discorgeous/server.py", line 42, in fetch_gtts_message
text_to_speech.write_to_fp(byte_stream)
File "/usr/local/lib/python3.6/dist-packages/gtts/tts.py", line 221, in write_to_fp
raise gTTSError(tts=self, response=r)
gtts.tts.gTTSError: 500 (Internal Server Error) from TTS API. Probable cause: Uptream API error. Try again later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.