2 * Copyright (c) 2011-2016 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.
15 #ifndef __STT_FILE_CLIENT_H_
16 #define __STT_FILE_CLIENT_H_
25 #define TAG_STTFC "sttfile"
28 /* callback functions */
29 stt_file_recognition_result_cb recognition_result_cb;
30 void* recognition_result_user_data;
32 stt_file_result_time_cb result_time_cb;
33 void* result_time_user_data;
35 stt_file_state_changed_cb state_changed_cb;
36 void* state_changed_user_data;
38 stt_file_supported_language_cb supported_lang_cb;
39 void* supported_lang_user_data;
42 int current_engine_id;
45 stt_file_state_e before_state;
46 stt_file_state_e current_state;
59 int stt_file_client_new();
61 int stt_file_client_destroy();
63 stt_file_client_s* stt_file_client_get();
65 int stt_file_client_use_callback(stt_file_client_s* client);
67 int stt_file_client_not_use_callback(stt_file_client_s* client);
69 int stt_file_client_get_use_callback(stt_file_client_s* client);
77 #endif /* __STT_FILE_CLIENT_H_ */