https://github.com/danielterletzkiy/chat-gtp-assistant
nodejs script that enables continuous conversation with voice recognition and tts speaker responses
https://github.com/danielterletzkiy/chat-gtp-assistant
googletts gptchat microphone nodejs speach-to-text speaker typescript vosk
Last synced: 3 months ago
JSON representation
nodejs script that enables continuous conversation with voice recognition and tts speaker responses
- Host: GitHub
- URL: https://github.com/danielterletzkiy/chat-gtp-assistant
- Owner: DanielTerletzkiy
- Created: 2022-12-19T00:07:27.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T07:15:28.000Z (almost 3 years ago)
- Last Synced: 2024-11-30T17:40:29.996Z (10 months ago)
- Topics: googletts, gptchat, microphone, nodejs, speach-to-text, speaker, typescript, vosk
- Language: TypeScript
- Homepage:
- Size: 483 KB
- Stars: 25
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chat-gtp-assistant (wip)
Provides continuous conversation with microphone and speakers like using Google Assistant
After starting the script you'll be asked to resolve the captcha in the puppeteer browser instance the script will then
listen to your default microphone until silence of about 5 seconds has been reached, the language model will then try to
guess the things you said and pass them on to chatGPT and its output will be used to fetch googleTTS files to play on
the default system speaker## How to use
1. Create `.env` file
```dotenv
OPENAI_EMAIL="your_email"
OPENAI_PASSWORD="your_password"
CHROME_PATH="your_chrome_path"
```
2. `npm install`
3. install `sox` (if on windows) and libmad-0.dll for sox
4. install preferred `vosk` models for speech recognition, put them into `model/` folder
5. resolve other missing dependencies
6. `npm run dev`