2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 namespace TTSPlayerTest
23 class Example : NUIApplication
25 public Example() : base()
29 public Example(string stylesheet) : base(stylesheet)
33 public Example(string stylesheet, WindowMode windowMode) : base(stylesheet, windowMode)
37 protected override void OnCreate()
43 public void Initialize()
45 Window window = Window.Instance;
46 window.BackgroundColor = Color.White;
48 TTSPlayer ttsPlayer = TTSPlayer.Get(TTSPlayer.TTSMode.Default);
49 ttsPlayer.Play("tts player test");
51 ttsPlayer.StateChanged += (s, e) =>
53 Tizen.Log.Debug("NUI", "TTS state changed!!!");
58 Tizen.Log.Debug("NUI", "TTS state: " + ttsPlayer.GetState());
62 static void _Main(string[] args)
64 Example example = new Example();