Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-5583

[patch] Make it possible to return more information from mod_unimrcp (and other ASR modules)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7, Visual Studio 2010.
    • CPU Architecture:
      x86-64
    • Kernel:
      Microsoft Windows
    • Userland:
      Microsoft Windows
    • Distribution:
      Microsoft Windows
    • Compiler:
      Microsoft Visual Studio
    • FreeSWITCH GIT Revision:
      f7fb54d0cd22c361298c772ce025a47f7937631d
    • GIT Master Revision hash::
      Yes
    • Target Version:
      1.5

      Description

      This patch extends the ASR API to make it possible to return more variables to be sent in the DETECTED_SPEECH event. Today mod_unimrcp only returns the detection result, it won't return other headers that might be of interest. For instance if you set a parameter to let mod_unimrcp record the RTP stream, it returns a Waveform-URI in the MRCP reply.

      To make this possible I had to extend the ASR API to be able to fetch a pointer to a switch_event_t, where it's possible to ASR modules to add various data. Modules not implementing this method will continue to work as before - so there should be no compatibility issues here.

      Please review and get to me if there is something unclear in this patch.

      Depending on the other patch I submitted a couple of days ago, there might be a small offset when applying the patch, but it should work without any problems anyway.

      I reported this as a bug, even though it might be treated as an extended feature, however, since lots of the information needed to build a complete ASR is missing I thought of this more as a bug.

      /Peter

        Attachments

        1. patch.txt
          16 kB
        2. patch.txt
          16 kB
        3. patch.txt
          16 kB
        4. patch-switch_find_parameter.txt
          15 kB

          Activity

            People

            • Assignee:
              anthm Anthony Minessale II
              Reporter:
              peolsson Peter Olsson
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: