Open kirstenalice opened 4 years ago
I haven't heard of the festival
package and just looked it up. It doesn't provide the real festival, it only provides a (very broken) wrapper around festival. It's sort of like a very primitive, alternative version of this say
package. To get festival you would need to do somehow download the festival binary and package it with your project when you deploy to Heroku.
Even if you did that, though, you still wouldn't get audio. The say
package will speak text on the computer that it is run on. Some people are hobbyists and use this project on a small computer they own. Others just experiment on their laptop. In this case the computer that is running the package is a Heroku server somewhere in a dark, air conditioned basement. You probably don't want your text being read down there.
Maybe you could try to have the server generate the audio and save it to a file, then download that audio to the browser and play it in the browser, but even then the say
package currently doesn't allow you to save audio in this manner (see issue #20).
If you want to hear audio played from a computer with a web browser open, you might consider the SpeechSynthesis browser API.
Hi,
Even I'm facing similar issue,
2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR events.js:174 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR throw er; // Unhandled 'error' event 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR ^ 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR Error: write EPIPE 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at afterWriteDispatched (internal/stream_base_commons.js:78:25) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at writeGeneric (internal/stream_base_commons.js:73:3) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket._writeGeneric (net.js:714:5) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket._write (net.js:726:8) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at doWrite (_stream_writable.js:415:12) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at writeOrBuffer (_stream_writable.js:399:5) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket.Writable.write (_stream_writable.js:299:11) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket.Writable.end (_stream_writable.js:584:10) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket.end (net.js:545:31) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at SayPlatformLinux.speak (/home/vcap/app/node_modules/say/platform/base.js:39:24) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR Emitted 'error' event at: 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at errorOrDestroy (internal/streams/destroy.js:107:12) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at onwriteError (_stream_writable.js:430:5) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at onwrite (_stream_writable.js:461:5) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at _destroy (internal/streams/destroy.js:49:7) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket._destroy (net.js:614:3) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket.destroy (internal/streams/destroy.js:37:8) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at afterWriteDispatched (internal/stream_base_commons.js:78:17) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at writeGeneric (internal/stream_base_commons.js:73:3) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket._writeGeneric (net.js:714:5) 2021-04-04T09:01:08.763+0000 [APP/PROC/WEB/0] ERR at Socket._write (net.js:726:8)
And the app is getting crashed in AWS. Please help to resolve this.
Thanks in advance
I'm very new to web development, I know next to nothing about what I'm doing. I'm trying to build a small site for my grandfather, he's lost the ability to speak and I figured I could custom-make him a speech interpretation site. I made a simple site, a text box and a button that routes the words from the text box to say.speak(). I tried to host it using heroku, but heroku crashes every time I submit text to be read. It throws errors in the heroku logs when the site launches, and it throws different errors when I submit text to be read.
I have installed festival with npm. That didn't make a difference, it throws the same errors.