Introduce tts_core.h/c as genral logic layer
[platform/core/uifw/tts.git] / client / tts_core.h
1 /*
2 *  Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
3 *  Licensed under the Apache License, Version 2.0 (the "License");
4 *  you may not use this file except in compliance with the License.
5 *  You may obtain a copy of the License at
6 *  http://www.apache.org/licenses/LICENSE-2.0
7 *  Unless required by applicable law or agreed to in writing, software
8 *  distributed under the License is distributed on an "AS IS" BASIS,
9 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 *  See the License for the specific language governing permissions and
11 *  limitations under the License.
12 */
13
14
15 #ifndef __TTS_CORE_H_
16 #define __TTS_CORE_H_
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 #include "tts_client.h"
23
24 int tts_core_notify_state_changed(tts_client_s* client, tts_state_e before_state, tts_state_e current_state);
25 int tts_core_notify_utt_started(tts_client_s* client, int utt_id);
26 int tts_core_notify_utt_completeted(tts_client_s* client, int utt_id);
27 int tts_core_notify_error(tts_client_s* client, int utt_id, tts_error_e reason);
28 int tts_core_notify_default_voice_changed(tts_client_s* client, const char* before_lang, int before_voice_type, const char* language, int voice_type);
29 int tts_core_notify_engine_changed(tts_client_s* client, const char* engine_id, const char* language, int voice_type, bool need_credential);
30 int tts_core_notify_supported_voice(tts_client_s* client, const char* language, int voice_type);
31
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* __TTS_CORE_H_ */