lightningorb / chatjeeptea Goto Github PK
View Code? Open in Web Editor NEWChatGPT-based voice Telegram bot
License: GNU General Public License v3.0
ChatGPT-based voice Telegram bot
License: GNU General Public License v3.0
โฏ 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.