Download Latest Version MMEClient.tar (8.9 MB)
Email in envelope

Get an email when there's a new version of Multimodal Engine Platform

Home
Name Modified Size InfoDownloads / Week
MMEClient.tar 2010-05-24 8.9 MB
README 2010-05-24 3.5 kB
MME_src.tar 2010-05-12 14.1 MB
MME_binary.rar 2010-05-12 7.1 MB
Totals: 4 Items   30.1 MB 0

INSTALLATION
==============
Multimodal engine is a webservice application that you must deploy in a tomcat server application.
Generate the jar file and copy it to the webapps tomcat directory.
You will need the following libraries:

-  axis2-1.5-bin.zip
-  jdom-1.1.1.tar.gz
-  httpcore-4.0.jar
-  jdom.jar

Copy these libraries into the lib tomcat directory.


HOW to USE it.
==============

1. MME Initialization. Send configuration file
MMEApplicationStub.InitMME initMMEParameter = new MMEApplicationStub.InitMME();
			String configurationFileString = readFile(MME_CONFIGURATION_FILE);
			initMMEParameter.setConfigFile(configurationFileString);
			MMEApplicationStub.InitMMEResponse initMMEResponse = mme.initMME(initMMEParameter);
			if (initMMEResponse.get_return())
				System.out.println("MME initialization correctly");
			else
			{
				System.out.println("Error in the MME initialization");
				return;
			}

2. Set Application Policy


			String applicationPolicyString = readFile("testFiles/ApplicationPolicy_phillips.xml");

			MMEApplicationStub.SetApplicationPolicy setApplicatPolicyParameter = new MMEApplicationStub.SetApplicationPolicy();;
			setApplicatPolicyParameter.setApplicationPolicyString(applicationPolicyString);
			MMEApplicationStub.SetApplicationPolicyResponse setApplicationPolicyResponse = mme.setApplicationPolicy(setApplicatPolicyParameter);
			if (setApplicationPolicyResponse.get_return())
				System.out.println("Application policy stored correctly");
			else
			{
				System.out.println("Error parsing the application policy");
				return;
			}


3. Set User Profile

String userProfileString = readFile("testFiles/UserProfile 01.xml");
			MMEApplicationStub.SetUserProfile setUserProfileParameter = new MMEApplicationStub.SetUserProfile();
			setUserProfileParameter.setUserProfileString(userProfileString);
			MMEApplicationStub.SetUserProfileResponse setUserProfileResponse = mme.setUserProfile(setUserProfileParameter);
			if (setUserProfileResponse.get_return())
				System.out.println("User profile  stored correctly");
			else
			{
				System.out.println("Error parsing the user profile");
				return;
			}

4. Set Context Parameter
You can set different context parameters. For example, MICROPHONE:

			setContextParameter.setName("MICROPHONE");
			setContextParameter.setValue(1f);
			setContextParameterResponse = mme.setContextParameter(setContextParameter);
			if(setContextParameterResponse.get_return())
				System.out.println(" MICROPHONE Context Parameter set correctly");
			else
			{
				System.out.println("Error when setting Context Parameter");
				return;
			}

5. Get Optimal Input Mode
			MMEApplicationStub.GetOptimalInputModalityResponse getOptimalInputModalityResponse = mme.getOptimalInputModality();
			System.out.println("Optimal input modality: " + getOptimalInputModalityResponse.get_return());

6. Get Optimal Output Mode
			MMEApplicationStub.GetOptimalOutputModalityResponse getOptimalOutputModalityResponse = mme.getOptimalOutputModality();
			System.out.println("Optimal output modality: " + getOptimalOutputModalityResponse.get_return());


Now, the system is ready to received different commands and proccess them:

MMEApplicationStub.SendData sendDataParameter = new MMEApplicationStub.SendData();
				sendDataParameter.setData(readFile("testFiles/InputEvent_phillips.xml"));
				MMEApplicationStub.SendDataResponse sendDataResponse = mme.sendData(sendDataParameter);
				if(sendDataResponse.get_return())
					System.out.println("Command sent correctly");


			
Source: README, updated 2010-05-24