![]() |
|
Voice to speech help - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html) +--- Thread: Voice to speech help (/thread-2112.html) |
Voice to speech help - frdhog - 10-01-2017 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. RE: Voice to speech help - frdhog - 10-01-2017 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. RE: Voice to speech help - Kosmos - 10-01-2017 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. RE: Voice to speech help - Red The Blue Color - 10-01-2017 (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. RE: Voice to speech help - TheOneAndOnlyTee - 10-01-2017 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. RE: Voice to speech help - Red The Blue Color - 10-01-2017 (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. 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. RE: Voice to speech help - TheOneAndOnlyTee - 10-01-2017 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. RE: Voice to speech help - Jan Tuck - 11-01-2017 Starfall and E2 is not languages you should do voice control in... I dont suggest lua either... |