content
The software setting before the preface development creates a Voice project to create a voiceXML file to create a spoken grammar file overall test about the author
Liu Xuezhe (acmeliu@sohu.com) Shuiya Net E-Commerce Development Services Co., Ltd. Technical Director In November 2002, in this tutorial we will use IBM's WebSphere Voice Toolkit to complete a Chinese voice application. Before you use this tutorial, you must install the WebSphere Voice Server SDK required by IBM on your computer, which is the voice Toolkit, which is the title of this tutorial title. The Chinese language tester is provided in WebSphere Voice Server SDK and WebSphere Voice Server used in development testing. You can download this URL: www-4.ibm.com/software/speech/enterprise/ep_11.html Before you start tutorial, I hope that your elements that appear in VoiceXML have a general understanding, so that You can understand the meaning of symbols that appear in this tutorial code. If you have already known VoiceXML before this, how it doesn't have an intuitive experience. I believe that the programs in this tutorial will disperse your many questions in developing Chinese voice applications. We created a voice fast food app, and the customer can complete the order of fast food food through this voiceXML voice application. Then you will ask the current phone automatic response system to do the corresponding service function, why we need to develop a VoiceXML voice application. The most intuitive experience in this program is different from the VoiceXML application and the traditional telephone response system in that the traditional telephone response system is usually issued by DTMF. VoiceXML-based voice applications can transmit related instructions by non-specific people's voice. So the voice application developed using VoiceXML technology has a qualitative leap in the user interface relative to traditional voice applications. You will have a deeper experience in the speech program test behind the tutorial. The software setting before the development of the first time before using WebSphere Voice Toolkit, we need to do a few things. First, please run the Audio Setup - Simplified Chinese in WebSphere Voice Server SDK, this program is Detect your microphone sensitivity and noise in your surrounding environment meet the minimum requirements of the development environment. If you pass this test, you can correctly identify your spoken instructions when you spend the development test, in fact, for VoiceXML, application of non-specific person speech recognition technology for environmental noise, which voice input software relative to It is quite low.
Figure 1, voice development environment test
Second, it is also the voice application you develop to issue a Chinese TTS voice in the test environment. Start the Voice Toolkit and select Menu Window => Preferences, the Voice Language in the Voice Toolkit is selected as Simplified Chinese in the Voice Toolkit on the Open Parameter Options. If you develop other language versions in the same software, change this to the corresponding language so that the system can output TTS voice.
Figure 2, Changing pronunciation language
Creating a voice project Now we officially start creating a Chinese voice application, first of all, create a voice project. In this project we can create the following files: VoiceXML: In this file we will create input and outputs for voice applications and related event processing. Grammar: Create a syntax for voice recognition in such files. Such as: JSGF Grammar File, SRCL Grammar File. PRONUNCIATION: Create a word pronunciation standard in such a file. Such as: Pronunciation Pool file, Pronunciation Exception Dictionary. Voice Toolkit provides the corresponding editor and test environment for the above types of files. 1. Select File => New => Voice Project 2. Enter the item name you will create in Project Name in the project window, the name in this tutorial is Chinesevoice 3. Click Finish to complete the creation work Figure 3. Create a Voice Toolkit project
Create a voiceXML file In this tutorial we will create a voiceXML file, in which we will implement the VoiceXML language input and output and basic event processing. First let's create a voiceXML file: 1. Select File => New => VoiceXML File 2, enter the name of the file you will create in the VoiceXML File Name in the New VoiceXML File window, the name in this tutorial Welcome.vxml 3 Select Finish to complete the creation work
Figure 4, create a voiceXML file
Now you can write your voice application in the VoiceXML editor.
Figure 5, VoiceXML file editor
Let's first take a look at the code used by the VoiceXML file in the voice-making shop application we created XML Version = "1.0" eNCoding = "GB2312"?>