Anybody done this? I basically need to create a sandbox for a remote trusted user to login to and don’t want to allow them to roam all over the server or make changes accidentally.
Thanks!!
Alternatively, would this approach ‘damage’ the FreePBX install? Chroot jail
Not quite, I have several dockers to do various things and they can be started and stopped at whim but it is not a distro server, and that might be a problem when you need to compile their res_speech_vosk module if you don’t have full knowledge of how 'The Distro" builds asterisk.
If you want an economy SST engine, it takes about half an hour or so but $0 out f pocket.
The RTFM bit
https://alphacephei.com/vosk/install
the docker bit
docker run -d -p 2700:2700 alphacep/kaldi-en:latest
and the "asterisk Hook"
https://github.com/alphacep/vosk-asterisk
I will tell you it takes lots of memory, probably going to need 8G but just one CPU will do
thanks, Dicko, I’d LOVE to play with this stuff but I don’t have full knowledge (or much at all) of how the distro builds asterisk. I’d hate to mess up my install. Having said that I have just installed freepbx on a virtual machine so maybe I could play there…
No. FreePBX per se is fully respectful of the modules you have installed and loaded in /etc/asterisk/modules.conf when asterisk starts , but you can’t compile the Vosk module without Asterisk source code, and that is not currently available in ‘the distro’ (or @billsimon’s recipe) , so you unfortunately will have to to dig a little deeper Yossarian
You will (currently) loose any ability to use commercial modules, but there is hope that as ‘the distro (>=16)’ moves from Zend to IonCube which supports a lot more ‘things’, up to php 7.4 on linux,windows macos and bsd, using any CPU architecture, then technically commercial modules would be then install-able.
any ‘context’ (which are not ‘modules’) you write that call any speech* extensions should be in extensions_custom.conf to prevent FreePBX (distro or non-distro) from over-writing it, otherwise it JWFM.
Is there any way I could run vosk as a parallel application, perhaps on another Pi, to avoid messing up my freepbx instance? I’ve hosed it so many times in the last couple of years with faulty SD cards or faulty power supplies to the Pi, that I’m very wary of messing it up again. It’s SO fiddly to tweak to how I want it, even with backups.
(Please don’t shout at me for running it on a Pi.)