Skip to contentSkip to main navigation Skip to footer

How to install new language or technology model

This article explains how to add a new technology model into the current Speech Engine (SPE) instance. In Speech to Text (STT) and Keyword Spotting (KWS), it can be understood also as adding new language to STT or KWS.

Prerequisites

To proceed, you need to have existing installation of SPE. If you do not have one, check other articles, especially

Installation packages are custom created and provided to you by your assigned Phonexia contact. Version of installation package must match the version of your SPE. Your assigned Phonexia contact will ask which version of SPE you are running, but you can speed things up by providing the information already in your request.

How to check SPE version

Go to your SPE installation directory and locate phxadmin (Linux) or phxadmin.exe (Windows) binary. Then run following command:

On Linux run: ./phxadmin --version
On Windows run: phxadmin.exe /version

You should see the output similar to this:

Installation

In our example, we will install Spanish (ES_ES_5) model of Speech to Text and Keyword Spotting (with Phoneme Recognizer) into existing installation.

Installation of new language or technology model can be done in few steps:

  1. Unzip installation package to a temporary directory.
  2. Each installation package will contain  phxadmin (Linux) or phxadmin.exe (Windows) binary. Using the procedure above verifies that the package version matches your SPE version. If not or in doubt, contact your Phonexia contact.
  3. Stop SPE gracefully by sending Ctrl+C to its terminal Window. Wait for it to finish. Based on number of running tasks, it can take some time.
  4. When SPE is stopped, merge content of bsapi directory from your temporary folder to your SPE installation.
  5. In our example, I have installed Spanish model (ES_ES_5 technology model) of Speech to Text and Keyword Spotting (with Phoneme Recognizer). When you install new languages or models, they are turned off by default (green boxes on screenshot).
    To turn new models on, run following command (expectation: SPE is not running).

    On Windows run: phxadmin.exe /configure-tech
    On Linux run: ./phxadmin --configure-tech


    You can see that Spanish (ES_ES_5 technology model) now appears as available model (blue box) and you can enable it.

  6. Now you can start SPE back again and use newly installed languages or technology models.
    To start SPE, run following command:

    On Windows run: phxspe.exe
    On Linux run: ./phxspe

 

Final note: The binary phxadmin2 | phxadmin2.exe  is production level BETA. We recommend to use only phxadmin | phxadmin.exe for production.

Privacy Preference Center

Necessary

Required cookies required for proper function of Word Press publication platform.

gdpr*, wordpress*,cf7*,wp-settings*,PHPSESSID

Analytics

We are using Google Analytic in Global Site Tag configuration for keeping site content optimized for great user experience. No personal data are sent.

_ga*,_gid