I’m thinking about using Mozilla’s DeepSpeech in my language learning website. I have a couple of questions:
- How many languages does it support?
- Does it support livestream with PHP or do I have to install NODEJS?
I’m thinking about using Mozilla’s DeepSpeech in my language learning website. I have a couple of questions:
As many as contributors can train for. We only release English model for the moment, but there are people sharing a wide variety, including welsh, german, french, spanish, etc.
We don’t have a PHP extension, but if you can ctypes
you should be able to rely on libdeepspeech.so
. We have others languages bindings, Python, etc.
PHP 7.4 has a Foreign Function Interface that allows you to call C code, so it might be possible to run it that way.
But a simpler method would be to use exec or shell_exec to run the command-line client.
For streaming that’s going to be a much pain IMHO.
SWIG has support for PHP, you might be able to re-use that. We’d be happy to reference a new binding that you would be maintaining or a PR to add it, but we are far away from the PHP world so we might need help from you.
Ah, I missed the part about streaming. Thanks for spotting it.