Using mm-control to process voice commands

To support voice commands in legacy applications that use mm-control to perform media operations, your QNX CAR image must load a nondefault version of the CarMedia module that works with mm-control.

There are different versions of the CarMedia conversation module (or plugin) for each of the mm-player and mm-control media services shipped with the platform. By default, the ASR subsystem is configured to use the version that works with mm-player; this setup works with both the Qt5 and HTML5 HMIs. However, if you want to support media-related voice commands in applications that depend on mm-control, you must use the plugin version designed for this alternative service.
To use the mm-control version of the CarMedia conversation module:
  1. From a QNX terminal on the target board, open the ASR configuration file (/etc/asr-car.cfg) in an editor.
  2. In the load-modules section, disable the conversation module for mm-player by changing:
    # add module to control media playback and perform
    # media queries using the mm-player back-end.
    dll = $(dlldir)/asr-mm-player-car-media-conversation.so
    

    to:

    # add module to control media playback and perform
    # media queries using the mm-player back-end.
    #dll = $(dlldir)/asr-mm-player-car-media-conversation.so
    
  3. Enable the conversation module for mm-control by changing:
    # add module to control media playback and perform
    # media queries using the mm-control back-end.
    #dll = $(dlldir)/asr-mm-control-car-media-conversation.so
    

    to:

    # add module to control media playback and perform
    # media queries using the mm-control back-end.
    dll = $(dlldir)/asr-mm-control-car-media-conversation.so
    
  4. Save the ASR configuration file and return to the QNX terminal.
  5. Reboot the target board by issuing the reboot command.

The system reboots and relaunches the HMI. Now, when you run media apps and issue voice commands, mm-control will process them.

To reenable the loading of the plugin version that works with mm-player, restore the ASR configuration file to its original state and then reboot again.