Created
March 13, 2023 03:00
-
-
Save primaryobjects/980921aab2deada3fbc879ad9249cbc5 to your computer and use it in GitHub Desktop.
Text to speech app created with ChatGPT. https://youtu.be/esq7vHKzwKA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const say = require('say'); | |
// Read command line arguments | |
const args = process.argv.slice(2); | |
const fileName = args[0]; | |
// Read the file contents | |
fs.readFile(fileName, 'utf8', (err, data) => { | |
if (err) throw err; | |
// Speak the contents of the file | |
say.speak(data); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello, this is my first time pair programming with ChatGPT. I sure hope it goes well! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"say": "^0.16.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment