Exemple #1
0
        /// <summary>
        /// Plays silence for the specified duration in milliseconds
        /// </summary>
        public static void playSilence(long durationInMs, TTSQueueMode queueMode)
        {
            if (Application.platform != RuntimePlatform.Android)
            {
                return;
            }

            _plugin.Call("playSilence", durationInMs, (int)queueMode);
        }
Exemple #2
0
        /// <summary>
        /// Speaks the text passed in optionally queuing it or flushing the current queue
        /// </summary>
        public static void speak(string text, TTSQueueMode queueMode)
        {
            if (Application.platform != RuntimePlatform.Android)
            {
                return;
            }

            _plugin.Call("speak", text, (int)queueMode);
        }
	// Plays silence for the specified duration in milliseconds
	public static void playSilence( long durationInMs, TTSQueueMode queueMode )
	{
		if( Application.platform != RuntimePlatform.Android )
			return;
		
		_plugin.Call( "playSilence", durationInMs, (int)queueMode );
	}
	// Speaks the text passed in optionally queuing it or flushing the current queue
	public static void speak( string text, TTSQueueMode queueMode )
	{
		if( Application.platform != RuntimePlatform.Android )
			return;
		
		_plugin.Call( "speak", text, (int)queueMode );
	}