Giter Club home page Giter Club logo

chatjeeptea's People

Contributors

lightningorb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chatjeeptea's Issues

google.auth.exceptions.DefaultCredentialsError: File key.json was not found.

โฏ python src/main.py
INFO:telegram.ext._application:Application started
Error while checking authorization: [Errno 2] No such file or directory: 'src/auth.json'
INFO:speak:Synthesizing into text: Hello and welcome to Chat Jeep Tea. To speak to me, record and send a voice message by doing a long press on the microphone icon at the bottom right of telegram. I will respond to your message. To bring up the help menu at any time, type /help. Please bear in mind I keep a certain (somewhat small) amount of the conversation history as context. This helps us have a more natural conversation. Go ahead, ask me anything.
INFO:speak:Language: en-US
ERROR:telegram.ext._application:No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 1104, in process_update
await coroutine
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/telegram/ext/_handler.py", line 141, in handle_update
return await self.callback(update, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/src/main.py", line 63, in intro
fn = await speak(msg, user.id, "en-US")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/src/speak.py", line 28, in speak
response = await loop.run_in_executor(None, synthesize_speech)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/src/speak.py", line 17, in synthesize_speech
client = texttospeech.TextToSpeechClient()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/google/cloud/texttospeech_v1/services/text_to_speech/client.py", line 431, in init
self._transport = Transport(
^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/google/cloud/texttospeech_v1/services/text_to_speech/transports/grpc.py", line 149, in init
super().init(
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/google/cloud/texttospeech_v1/services/text_to_speech/transports/base.py", line 98, in init
credentials, _ = google.auth.default(
^^^^^^^^^^^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/google/auth/_default.py", line 615, in default
credentials, project_id = checker()
^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/google/auth/_default.py", line 608, in
lambda: _get_explicit_environ_credentials(quota_project_id=quota_project_id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/google/auth/_default.py", line 228, in _get_explicit_environ_credentials
credentials, project_id = load_credentials_from_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/anonymous/git/chatJeepTea/.venv/lib/python3.11/site-packages/google/auth/_default.py", line 116, in load_credentials_from_file
raise exceptions.DefaultCredentialsError(
google.auth.exceptions.DefaultCredentialsError: File key.json was not found.
Error while checking authorization: [Errno 2] No such file or directory: 'src/auth.json'anonymous

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.