Welcome!

Microsoft Cloud Authors: Janakiram MSV, Yeshim Deniz, David H Deans, Andreas Grabner, Stackify 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
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
No hype cycles or predictions of a gazillion things here. IoT is here. 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, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, discussed some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he covered some of the best practices for structured team migration an...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
DevOps at Cloud Expo – being held June 5-7, 2018, at the Javits Center in New York, NY – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real results. Among the proven benefits,...
@DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait...
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on qua...
SYS-CON Events announced today that Cedexis will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Cedexis is the leader in data-driven enterprise global traffic management. Whether optimizing traffic through datacenters, clouds, CDNs, or any combination, Cedexis solutions drive quality and cost-effectiveness. For more information, please visit https://www.cedexis.com.
SYS-CON Events announced today that Google Cloud has been named “Keynote Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.
SYS-CON Events announced today that Vivint to exhibit at 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. As a leading smart home technology provider, Vivint offers home security, energy management, home automation, local cloud storage, and high-speed Internet solutions to more than one million customers throughout the United States and Canada. The end result is a smart home solution that sav...
SYS-CON Events announced today that Opsani will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Opsani is the leading provider of deployment automation systems for running and scaling traditional enterprise applications on container infrastructure.
SYS-CON Events announced today that Nirmata will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nirmata provides a comprehensive platform, for deploying, operating, and optimizing containerized applications across clouds, powered by Kubernetes. Nirmata empowers enterprise DevOps teams by fully automating the complex operations and management of application containers and its underlying ...
SYS-CON Events announced today that Opsani to exhibit at 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. Opsani is creating the next generation of automated continuous deployment tools designed specifically for containers. How is continuous deployment different from continuous integration and continuous delivery? CI/CD tools provide build and test. Continuous Deployment is the means by which...