This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
xuma202's profile picture

[Request] Audio and speech peripheral

Started by xuma202, 11 April 2012 - 02:52 PM
xuma202 #1
Posted 11 April 2012 - 04:52 PM
Hi,

I wanna suggest an audio and speech peripheral. That can play wav/mp3-files and that has speech synthesis. So you could create a house and when you enter it a voice will say
"Hello, Welcome back. We have farmed 37 Wheat. You Industrial Craft solar power plant has produced 245 EU. Someone rang your doorbell at 1:37 PM."

That would be awesome.

What do you think?

Is someone interested in creating such a peripheral? (if not I would have to do it on my own and I'm not good a that)
Xfel #2
Posted 11 April 2012 - 05:41 PM
Speech synthesis is very difficult and not available on all machines. It would require the use of native libraries, and it's difficult to redistribute them correctly. Playing audio files would be possible, but not useful on multiplayer as the client's can't upload own audio data.
xuma202 #3
Posted 11 April 2012 - 05:45 PM
I was not thinking of MP. But speech syntheses is possible on Windows and for the others you could create Web API transferring Text in Audio files which then will be played
Xfel #4
Posted 11 April 2012 - 06:11 PM
You would still need to use system functions, and that is a bit nasty on java.
ds84182 #5
Posted 12 April 2012 - 03:19 AM
Possible, Just Use FreeTTS. Google It.