PC SOFT
ONLINE REPOSITORY
FOR WINDEVWEBDEV AND WINDEV MOBILE

Home |  | Sign in | English US
WM Android Comando de Voz - JAVA CODE
Published by Boller
in the category Tools
New features



Description
WM Android Comando de Voz

Usa arquivo Java tipo .Jar como biblioteca de execução

// Initializes the speech synthesis
import com.PC SOFT.synthesis.*;
import android.util.Log;

public static void InitializeSpeechSynthesis(){
SpeechSynthesisManager.gSpeechSynthesis.Init(getCurrentActivity());
}

--------------------------------------------------------------------------------------------------------------------------------------

// Reads a text via the speech synthesis if it is initialized
import com.PC SOFT.synthesis.*;

public static boolean ReadText(String sText){
if(SpeechSynthesisManager.gSpeechSynthesis.bInitDone){
SpeechSynthesisManager.gSpeechSynthesis.ReadText(sText);
return true;
}
else{
return false;
}
}


----------------------------------------------------------------------------------------------------------------

// Stops the speech synthesis
import com.PC SOFT.synthesis.*;

public static void StopSpeechSynthesis(){
SpeechSynthesisManager.gSpeechSynthesis.Stop();
}

-----------------------------------------------------------------------------------------------------------------

Usando o .jar

// Summary: Starts the speech synthesis
//
PROCEDURE ReadingJAR()

// Read the text
IF ReadText(EDT_Text) = False THEN
Info("The text was not read because the speech synthesis was not initialized or installed.")
END
Illustrations, screen shots
none
none
User reviews
(To evaluate this resource, click 'Write a review')
No review or comment? Be the first one!