GithubHelp home page GithubHelp logo

asyncgtts's Introduction

๐Ÿ‘‹ Hi there, I'm Daisy Thomas (aka Gnome!)

  • Interested in: Backend development, Performance Optimisation, Discord Bot Development
  • Contact me: GnomedDev on Discord
  • Languages: Rust, TypeScript, Python

My Languages

Gnome's GitHub stats Top Langs

asyncgtts's People

Contributors

gnomeddev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

asyncgtts's Issues

404 Not Found

import asyncio
import aiohttp
import asyncgTTS

async def main():
    async with aiohttp.ClientSession() as session:
        gtts = await asyncgTTS.setup(premium=False, session=session)
        text = "Hello World"
        hello_world = await gtts.get(text=text)
        with open("test.mp3", "wb") as f:
            f.write(hello_world)

asyncio.run(main())
easygttsException                         Traceback (most recent call last)
[<ipython-input-21-b0dc61b23000>](https://localhost:8080/#) in <cell line: 16>()
     14             f.write(hello_world)
     15 
---> 16 asyncio.run(main())
     17 
     18 import IPython.display as ipd

5 frames
[/usr/local/lib/python3.10/dist-packages/asyncgTTS/easygTTS.py](https://localhost:8080/#) in get(self, **kwargs)
     34                 raise RatelimitException(content, headers)
     35 
---> 36             raise easygttsException(f"{resp.status} {resp.reason}: {await resp.read()}")
     37 
     38     @require_session

easygttsException: 404 Not Found: b'<!DOCTYPE html>\n<html>\n  <head>\n    <meta name="viewport" content="width=device-width, initial-scale=1">\n    <meta charset="utf-8">\n    <title>Heroku | Application Error</title>\n    <style media="screen">\n      html,body,iframe {\n        margin: 0;\n        padding: 0;\n      }\n      html,body {\n        height: 100%;\n        overflow: hidden;\n      }\n      iframe {\n        width: 100%;\n        height: 100%;\n        border: 0;\n      }\n    </style>\n  </head>\n  <body>\n    <iframe src="//[www.herokucdn.com/error-pages/no-such-app.html](http://www.herokucdn.com/error-pages/no-such-app.html)"></iframe>\n  </body>\n</html>\n'

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.