PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Necessary conditions
  • Using the speech synthesis in the application
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The phones can talk!
WINDEV Mobile proposes several functions to easily use this feature in your applications for Android, iOS or Universal Windows 10 App devices.
Versions 21 and later
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
New in version 21
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
How to proceed?

Necessary conditions

AndroidAndroid Widget The functions for speech synthesis are available for the devices running Android version 1.6 or later (api level 4).
A fatal error occurs if the function is used with an earlier system version.
To find out the version of the Android system on which the application is run, use SysAndroidVersion.
Versions 21 and later
iPhone/iPad The functions for speech synthesis are available for the devices running iOS version 6 or later. The speech synthesis does not operate on the iOS 8 emulators.
New in version 21
iPhone/iPad The functions for speech synthesis are available for the devices running iOS version 6 or later. The speech synthesis does not operate on the iOS 8 emulators.
iPhone/iPad The functions for speech synthesis are available for the devices running iOS version 6 or later. The speech synthesis does not operate on the iOS 8 emulators.

Using the speech synthesis in the application

To use the speech synthesis in the application:
  1. Initialize the options for managing the voice synthesis with SpeechSynthesisInitialize.
    Note: This function is optional. If the parameters of speech synthesis have not been defined beforehand, the default parameters will be used and the language for text reading will be the first language available for the engine of speech synthesis according to the following sequence:
    • Language of application (default language or language defined by Nation),
    • Language of device,
    • English,
    • Default language of engine for speech synthesis.
  2. AndroidAndroid Widget Define (if necessary) the reading volume with VolumeModify (volumeMusic constant>.
  3. Start the reading with the following functions:
    SpeechSynthesisReadFileReads the content of the specified file by using the engine for speech synthesis found on the device.
    SpeechSynthesisReadTextReads the specified text by using the engine for speech synthesis found on the device.
Notes:
  • AndroidAndroid Widget If no engine for speech synthesis is installed on the device, its download will be automatically proposed.
  • If a new read operation is triggered while another read operation is in progress, the new read operation will start once the first one is over.
    To find out whether a read operation is in progress on the engine for speech synthesis, use SpeechSynthesisInProgress.
    To stop the current read operations, use SpeechSynthesisStop.
Related Examples:
Android Speech Synthesis Android (WINDEV Mobile): Android Speech Synthesis
[ + ] This educational example explains how to manage the recognition and the speech synthesis Android.
The speech synthesis is performed by using either the WLanguage functions, or an external JAR file included in the WINDEV Mobile project.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment