Welcome!

Microsoft Cloud Authors: Andreas Grabner, Stackify Blog, Liz McMillan, David H Deans, Automic Blog

Related Topics: Microsoft Cloud

Microsoft Cloud: Article

An Introduction to Speech Server

For voice-only and multimodal applications

The Web model has made people accustomed to being able to access information from just about anywhere at anytime. The problem is that we don't always have a Web browser available. The solution is to provide a voice interface to the application because most people have access to a telephone all the time. Microsoft provides a Speech platform for developing and running speech-enabled applications. Microsoft Speech Server (MSS) is the part of the platform that's used to deploy and run distributed speech applications. This article will offer an overview of Speech Server and associated technologies.

Speech Server is a Speech Applica-tion Language Tag (SALT)-compatible server that's capable of doing Speech Recognition (SR) and Text-To-Speech (TTS). SALT is a specification for extending existing Web specifications to support speech. More information can be found at www.saltforum.org. Speech Server is used when a device isn't powerful enough to do SR or TTS on its own. The two most prominent scenarios are:

  1. voice-only telephone apps
  2. multimodal Pocket PC apps
You're probably already familiar with voice-only telephone apps, such as when you call up your automated bank teller to check your account balance. User input can be done through your voice, or by using the key-pad (DTMF) on the phone. Output is either a pre-recorded voice, or a computer synthesized voice.

Multimodal apps are new. Currently they're web apps that are speech-enabled. Imagine the bank scenario again, but this time you're paying bills online. You have your bills in a stack in front of you, and the Web page is listing your payees. The non-speech-enabled scenario involves you using your mouse to click the payee, picking up the bill to see the amount, using the keyboard to enter the amount to be paid...then repeating the process. A multimodal app would involve you speaking the name of the payee, and then speaking the amount to be paid...you never having to touch the mouse or keyboard, or put the bills down. You can see the obvious benefit. But it becomes more beneficial when introducing mobile devices that don't have optimum user input capabilities, such as a Pocket PC or a slate Tablet PC. The next sections will further explain both voice-only and multimodal applications.

Voice-Only

To support voice-only telephony apps, the Speech Server requires a hardware board (<$1,000) installed in your ser-ver. It's a low-cost Dialogic board by Intel that can be plugged into the Public Switched Telephone Network (PSTN). It handles the processing of incoming and outgoing calls. If you're just experimenting with voice-only apps, then the Speech Application SDK (described below) provides a Telephone Application Simulator that you can test without the Dialogic board. Another accessible alternative is to use a hosted provider. In that case, somebody else would provide the Speech Ser-ver setup, and all you have to do is create (and possibly host) the speech-enabled Web application. Then you can call into their Speech Server and access your voice application. I must say it's a lot of fun to call up and have a conversation with an application you've written. It's fun to say hello back to your own Hello World app. But one wonders whether it's impolite to hang up on your app instead of saying goodbye.

Multimodal

A multimodal application is different from the voice-only scenario. It doesn't require a hardware board to connect to the PSTN because all data is passed over TCP. From the graphic above, the Pocket PC user browses to the Web page first. The Web server returns a Web page with SALT. At this point, the Speech Add-in for Pocket Internet Explorer kicks in (it has to be installed on the Pocket PC), and initiates a session with the Speech Server by using SOAP commands. The Web page could require voice input from the user, or need to do TTS output. For input, the user would hit a hardware button to start recording his answer through the PPC microphone. The PIE Speech add-in does some processing of the voice input, including compression, and then transmits that to the Speech Server over TCP. The Speech Ser-ver then processes the voice according to a grammar and returns the result as XML. The Speech add-in displays the result in the Web page, and possibly posts back to the Web server. If the Web page needed to do TTS output, then the Speech add-in would send the text to the Speech Server. Speech Server would connect to TTS and return the synthesized voice over TCP to be played back on the PPC's speaker. The user thinks he's connected to the Web server, but behind the scenes the Speech add-in is connecting to the Speech Server for additional processing. The Speech add-in connects to the Speech Server through SOAP commands, as well as directly on a TCP port.

A Speech Server isn't necessary in all multimodal scenarios. Tablet and desktop PCs are powerful enough to do SR and TTS locally. They don't need to offload the processing power to a server. In that case, they only need to access the Web server that's hosting the speech application. But they do need an add-in to make their browsers speech-capable. The add-in for IE is called the Speech Add-in for Microsoft Internet Explorer. Sadly, the IE Speech add-in is only available through the 200-megabyte Speech Application SDK download. My hope is that the recently announced IE7 will be deployed with the Speech Add-in.

Settings

Speech Server is something of a black box when it comesto how it does SR and TTS. It offers options to configure the voice used for speech synthesis and what port Pocket IE uses as well as logging. The pic below shows the two voices that come with Speech Server Standard Edition. There's also an XML file that can be modified to tweak the voice synthesis. The next sections will explore other technologies related to Speech Server.

Speech Application SDK

The Speech Application SDK is closely related to Speech Server. The Speech SDK is used to develop speech applications that use SALT. The Speech SDK installs into Visual Studio .NET adding project types, controls, Web scripts, designers, samples, debugging tools, and documentation. The developer skill set for voice applications is rather broad. You need to be familiar with ASP.NET, XML, SALT, XPATH, client-side scripting, grammars, prompt databases, and VUI (voice UI) design. The Speech SDK supports developing and debugging both voice-only and multimodal applications. More information about the Speech SDK can be found at the Microsoft Speech home page (see www.microsoft.com/speech/).

Speech Add-In for Pocket Internet Explorer

The Speech Add-in for PIE lets the user browse speech-enabled Web applications on a Pocket PC. It's included as an installer with Speech Server. Under the covers it interprets the SALT in the Web pages, communicates with the Speech Server through SOAP and TCP, displays an audio meter when recording input, does some processing and compression of voice input, and plays back synthesized output from the Speech Server. It gracefully handles any lost connections to the Speech Server, when you still have access to the Web server so the Web application still works (just without voice).

It will only work on Pocket PC 2003 devices, and only over a Wi-Fi or Ethernet connection. The PIE Speech add-in won't work on SmartPhones. Finally, the PIE Speech add-in is intended for controlled wireless networks. Meaning it can be used in office situations and warehouses. It's not intended for you to be able to do voice browsing when you happen to be at a public Wi-Fi hot spot (e.g., Starbucks). The pic below shows the Speech Add-in for PIE collecting audio for speech recognition.

Speech Add-In for Internet Explorer

The Speech Add-in for IE is like the Speech Add-in for PIE. The difference is that the Speech Add-in for IE doesn't require Speech Server. It does all the SR and TTS processing on the client machine. And it doesn't have the same connection restrictions. All it needs is a connection to the Web server that's rendering SALT-enabled Web pages. The desktop Speech Add-In for Internet Explorer comes with the Speech Application SDK.

Language Pack 1.1 Betas

The Speech Platform currently has three products in beta. One beta is version 1.1 of the Speech Application SDK. The other two betas are language packs for North American Spanish and Canadian French. The current RTM version of Speech Server only supports English. But with the language packs Speech Ser-ver can be extended to support more languages. A standard call center scenario can let a user choose which language he wants to use as in press 1 for English or 2 for Spanish. Having grown up in Texas, I know this required at many companies.

Conclusion

This has been a high-level overview of Speech Server and how it fits in the Microsoft Speech Platform. I hope that it has made it clear how flexible Speech Server is to handle the different application requirements that you might have, including voice-only call center or multimodal Pocket PC scenarios. If you want to con-tinue investigating Speech Server, I have published a continuation of this article showing the step-by-step process to install Speech Server and develop a multimodal Pocket PC application using the Speech Application SDK. It can be found at www.brains-N-brawn.com/speechMulti/.

More Stories By Casey Chesnut

Casey Chesnut is an independent consultant specializing in Seamless Computing (Mobility, Web Services, Speech, Location). This includes the Compact Framework, WS-*, Tablet PC, Speech SDK, MapPoint, and Artificial Intelligence. His blog and other articles can be found at www.brains-N-brawn.com.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
SYS-CON Events announced today that Cloud Academy named "Bronze Sponsor" of 21st International Cloud Expo which will take place October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara, CA. Cloud Academy is the industry’s most innovative, vendor-neutral cloud technology training platform. Cloud Academy provides continuous learning solutions for individuals and enterprise teams for Amazon Web Services, Microsoft Azure, Google Cloud Platform, and the most popular cloud com...
We build IoT infrastructure products - when you have to integrate different devices, different systems and cloud you have to build an application to do that but we eliminate the need to build an application. Our products can integrate any device, any system, any cloud regardless of protocol," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
In his session at Cloud Expo, Alan Winters, an entertainment executive/TV producer turned serial entrepreneur, presented a success story of an entrepreneur who has both suffered through and benefited from offshore development across multiple businesses: The smart choice, or how to select the right offshore development partner Warning signs, or how to minimize chances of making the wrong choice Collaboration, or how to establish the most effective work processes Budget control, or how to ma...
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
SYS-CON Events announced today that CA Technologies has been named "Platinum Sponsor" of SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business - from apparel to energy - is being rewritten by software. From planning to development to management to security, CA creates software that fuels transformation for companies in the applic...
Multiple data types are pouring into IoT deployments. Data is coming in small packages as well as enormous files and data streams of many sizes. Widespread use of mobile devices adds to the total. In this power panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists looked at the tools and environments that are being put to use in IoT deployments, as well as the team skills a modern enterprise IT shop needs to keep things running, get a handle on all this data, and deliver...
In his session at @ThingsExpo, Eric Lachapelle, CEO of the Professional Evaluation and Certification Board (PECB), provided an overview of various initiatives to certify the security of connected devices and future trends in ensuring public trust of IoT. Eric Lachapelle is the Chief Executive Officer of the Professional Evaluation and Certification Board (PECB), an international certification body. His role is to help companies and individuals to achieve professional, accredited and worldwide re...
Amazon started as an online bookseller 20 years ago. Since then, it has evolved into a technology juggernaut that has disrupted multiple markets and industries and touches many aspects of our lives. It is a relentless technology and business model innovator driving disruption throughout numerous ecosystems. Amazon’s AWS revenues alone are approaching $16B a year making it one of the largest IT companies in the world. With dominant offerings in Cloud, IoT, eCommerce, Big Data, AI, Digital Assista...
New competitors, disruptive technologies, and growing expectations are pushing every business to both adopt and deliver new digital services. This ‘Digital Transformation’ demands rapid delivery and continuous iteration of new competitive services via multiple channels, which in turn demands new service delivery techniques – including DevOps. In this power panel at @DevOpsSummit 20th Cloud Expo, moderated by DevOps Conference Co-Chair Andi Mann, panelists examined how DevOps helps to meet the de...
"When we talk about cloud without compromise what we're talking about is that when people think about 'I need the flexibility of the cloud' - it's the ability to create applications and run them in a cloud environment that's far more flexible,” explained Matthew Finnie, CTO of Interoute, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
No hype cycles or predictions of zillions of things here. IoT is big. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, Associate Partner at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He discussed the evaluation of communication standards and IoT messaging protocols, data analytics considerations, edge-to-cloud tec...
IoT solutions exploit operational data generated by Internet-connected smart “things” for the purpose of gaining operational insight and producing “better outcomes” (for example, create new business models, eliminate unscheduled maintenance, etc.). The explosive proliferation of IoT solutions will result in an exponential growth in the volume of IoT data, precipitating significant Information Governance issues: who owns the IoT data, what are the rights/duties of IoT solutions adopters towards t...
With the introduction of IoT and Smart Living in every aspect of our lives, one question has become relevant: What are the security implications? To answer this, first we have to look and explore the security models of the technologies that IoT is founded upon. In his session at @ThingsExpo, Nevi Kaja, a Research Engineer at Ford Motor Company, discussed some of the security challenges of the IoT infrastructure and related how these aspects impact Smart Living. The material was delivered interac...
The Internet giants are fully embracing AI. All the services they offer to their customers are aimed at drawing a map of the world with the data they get. The AIs from these companies are used to build disruptive approaches that cannot be used by established enterprises, which are threatened by these disruptions. However, most leaders underestimate the effect this will have on their businesses. In his session at 21st Cloud Expo, Rene Buest, Director Market Research & Technology Evangelism at Ara...
When growing capacity and power in the data center, the architectural trade-offs between server scale-up vs. scale-out continue to be debated. Both approaches are valid: scale-out adds multiple, smaller servers running in a distributed computing model, while scale-up adds fewer, more powerful servers that are capable of running larger workloads. It’s worth noting that there are additional, unique advantages that scale-up architectures offer. One big advantage is large memory and compute capacity...
Artificial intelligence, machine learning, neural networks. We’re in the midst of a wave of excitement around AI such as hasn’t been seen for a few decades. But those previous periods of inflated expectations led to troughs of disappointment. Will this time be different? Most likely. Applications of AI such as predictive analytics are already decreasing costs and improving reliability of industrial machinery. Furthermore, the funding and research going into AI now comes from a wide range of com...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
SYS-CON Events announced today that Enzu will exhibit at SYS-CON's 21st Int\ernational Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Enzu’s mission is to be the leading provider of enterprise cloud solutions worldwide. Enzu enables online businesses to use its IT infrastructure to their competitive advantage. By offering a suite of proven hosting and management services, Enzu wants companies to focus on the core of their ...
SYS-CON Events announced today that GrapeUp, the leading provider of rapid product development at the speed of business, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Grape Up is a software company, specialized in cloud native application development and professional services related to Cloud Foundry PaaS. With five expert teams that operate in various sectors of the market acr...