I was unsure of where to put this, as this applies to Starfall and Expression 2.
My issue is this:
I would like a speech to text command thingy. For example, I would say in the voice chat:
"Ship. Hangars open" > Opens hangar doors
I can't find any way in SF or E2 to do this. I have thought that using a pre-existing website such as https://dictation.io/ would be useful as it has simple buttons with different IDs for the buttons. I can't find a way to use the HTTP libraries to activate the javascript functions. This could be a GLua issue or something overlooked in the creation of these languages.
I have thought of one workaround is to fake it. For example, I type in chat /hangars open, then I use the voice chat which then triggers the hangar doors to open, but it's more effort than usual.
First, I don't think there is a speech to text module in Lua (or any other Language I commonly use) and I also don't think that you can just write one.
Secondly, the amount of data you get over a PCM channel is too high for starfall to handle (or send seamlessly over a network; it has to be listening constantly).
Finally no, there is no way for you to access voice in SF at the moment, and I couldn't find a function for it in GLua either, so you're asking the wrong person.
(10-01-2017, 07:03 PM)frdhog Wrote: I have thought of one workaround is to fake it. For example, I type in chat /hangars open, then I use the voice chat which then triggers the hangar doors to open, but it's more effort than usual.
Don't see the point in having to say it in voice chat anyways lol its more effort to find a way of making starfall read voice chat (which is nearly impossible as far as i know) basic chat commands have no flaw.
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
if you are determined to do, Discord Server->Node.js bot listening to voice channel->passed to diction->bot stores last said thing into hosted website->starfall retrieves it.
you'd probably need a http library for the bot though also on the plus side since it's in discord only other people in the voice chat could get annoyed by repeated ship commands.
(10-01-2017, 11:26 PM)T-18 Wrote: if you are determined to do, Discord Server->Node.js bot listening to voice channel->passed to diction->bot stores last said thing into hosted website->starfall retrieves it.
you'd probably need a http library for the bot though also on the plus side since it's in discord only other people in the voice chat could get annoyed by repeated ship commands.
Starfall would have to be constantly checking to see and it would have to be on owner only clientside, therefore you must use a starfall entity that can run clientside.
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
I assume that if someone wants to do voice commands they're okay with a little delay in responses, best case scenario i'd guess around 1s-5s if the diction service being used is fast.