Using Speech Recognition in UCMA 3.0 and Lync 2010: How the Applications Interact (Part 2 of 5)

Summary:   This is the second in a series of five articles that describe how a Microsoft Unified Communications Managed API (UCMA) 3.0 application and a Microsoft Lync 2010 application can be combined to perform speech recognition. Part 2 describes the interaction between the two applications.

Applies to:   Microsoft Lync Server 2010 | Microsoft Unified Communications Managed API 3.0 Core SDK | Microsoft Lync 2010

Published:   April 2011 | Provided by:   Mark Parker, Microsoft | About the Author


Code Gallery   Download code

This is the second in a five-part series of articles that describe how to incorporate speech recognition in Lync 2010 applications that interoperate with UCMA 3.0.

The following list is a high-level summary of the interactions between the UCMA 3.0 and Microsoft Lync 2010 applications.

  1. The UCMA 3.0 application creates and establishes a call (an AudioVideoCall instance) with the Lync 2010 client.

  2. The UCMA 3.0 application creates and then establishes the context channel (a ConversationContextChannel instance), between itself and the Lync 2010 application.

    When the UCMA 3.0 application establishes the context channel, it sends data through the channel that signals the Lync 2010 application that the channel is ready for use.

  3. To schedule an airline flight, the Lync 2010 user speaks a sentence such as, “I would like to fly from Dallas to Baltimore.”

  4. The audio of this utterance goes to the UCMA 3.0 application, and is routed into a SpeechRecognitionEngine instance. The speech recognition engine attempts to match the audio utterance against a previously-loaded grammar. If a match occurs, the speech recognition engine returns semantic items representing the two cities involved in the flight.

  5. The UCMA 3.0 application packages the two semantic items and a value for the cost of the flight into a string, and then sends the string to the Lync 2010 application.

  6. The Lync 2010 application unpacks the string that is received from the UCMA 3.0 application, and then displays the origination city, the destination city, and the price of the flight.

  7. To close the applications, the Lync 2010 user clicks the Exit button that appears in the Lync 2010 Conversation Window Extension (CWE).

Mark Parker is a programming writer at Microsoft whose current responsibility is the UCMA SDK documentation. Mark previously worked on the Microsoft Speech Server 2007 documentation.