Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

AI Automation Made Easy

10.2k members • Free

ChatGPT Users

12.6k members • Free

AI Automation Agency Hub

274.8k members • Free

AI Automation Society

208.5k members • Free

AI Skool with Ken Kai

721 members • $49/m

2 contributions to ChatGPT Users
Problems with ChatGPT
I currently have massive problems with ChatGPT. No history, no replies, and no possibility to upgrade to ChatGPT plus. Frustrating....
0 likes • Mar '23
I haven't been able to get it to work for 3 days. I can't even upgrade to a paid account. I've tried 3 different browsers, logged out, logged back in, cleared my cookies and cache since the beginning of time and still nothing. Contacting support is absolutely useless.
Text To Speech ChatGPT Assistant
Here is a small Python script that will allow you to interact with ChatGPT using your voice instead of a keyboard. It will also voice a response using the Python pyttsx3 library. You need to install a few libraries for it to work like openai, pyaudio, and SpeechRecognition. import openai import pyttsx3 import speech_recognition as sr import time #Set your OpenAI api key openai.api_key = "" #Init the text-to-speech engine engine = pyttsx3.init() def transcribe_audio_to_text(filename): recognizer = sr.Recognizer() with sr.AudioFile(filename) as source: audio = recognizer.record(source) try: return recognizer.recognize_google(audio) except: print('Skipping unknown error') def generate_response(prompt): response = openai.Completion.create( engine="text-davinci-003", prompt=prompt, max_tokens=4000, n=1, stop=None, temperature=0.5, ) return response["choices"][0]["text"] def speak_text(text): engine.say(text) engine.runAndWait() def main(): while True: #Wait for user to say "Larry", or call your assistant anything you wish print("Say 'Larry' to start recording your question...") with sr.Microphone() as source: recognizer = sr.Recognizer() audio = recognizer.listen(source) try: transcription = recognizer.recognize_google(audio) if transcription.lower() == "larry": #Record Audio filename = "input.wav" print("Yes human, what is your query?") with sr.Microphone() as source: recognizer = sr.Recognizer() source.pause_threshold = 1 audio = recognizer.listen(source, phrase_time_limit=None, timeout=None) with open(filename, "wb") as f: f.write(audio.get_wav_data()) #Transcribe audio to text text = transcribe_audio_to_text(filename) if text: print(f"You said: {text}") #Generate response using GPT-3 response = generate_response(text) print(f"Larry says: {response}") #Read response using text-to-speech speak_text(response) except Exception as e: print("An error has occurred: {}".format(e)) if __name__ == "__main__":
1 like • Mar '23
@Gad Amer I believe Python comes pre-installed on mac but just in case it’s not I added instructions to install it. I realize this may be a little more involved than most people want to tackle. Maybe I’ll make a Youtube video with how to run this. Step 1: Verify whether Python is installed on your Mac: Open the Terminal app (you can find it in the "Utilities" folder within the "Applications" folder), and type the following command: python --version If Python is installed on your Mac, this command will display the version number. If Python is not installed, you will see an error message. If installed, skip to Step 3. Take note of which version is installed Step 2: Install Python: If you find that Python is not installed on your Mac, you can download and install it from the official Python website. Here are the steps: a. Go to the official Python website: https://www.python.org/downloads/ b. Click on the "Download Python" button. c. Choose the latest version of Python for your Mac, and click on the "Download" button. d. Once the download is complete, double-click on the downloaded file to start the installation process. Follow the prompts to complete the installation. Step 3: Install pip or pip3: If you have Python 2 installed on your Mac, you should use pip. If you have Python 3 installed on your Mac, you should use pip3. Here are the steps to install pip or pip3: a. Open the Terminal app. b. To install pip, type the following command: sudo easy_install pip To install pip3, type the following command: sudo easy_install pip3 Note: If you get a message saying "easy_install: command not found", you may need to install the Xcode command-line tools. You can do this by typing the following command: xcode-select --install Follow the prompts to install the tools. c. Once pip or pip3 is installed, you can use it to install the Python packages required by the tts_ChatGPT script. Step 4: Install Required Packages
1-2 of 2
Terry McCann
2
10points to level up
@terry-mccann-2373
I am a full-stack developer with expertise in various programming languages, cloud platforms, and DevOps practices.

Active 113d ago
Joined Mar 10, 2023
Powered by