3 * Copyright 2012 Samsung Electronics Co., Ltd
\r
5 * Licensed under the Flora License, Version 1.0 (the License);
\r
6 * you may not use this file except in compliance with the License.
\r
7 * You may obtain a copy of the License at
\r
9 * http://floralicense.org/license/
\r
11 * Unless required by applicable law or agreed to in writing, software
\r
12 * distributed under the License is distributed on an AS IS BASIS,
\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 * See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
19 #ifndef _PLUGIN_INTERNAL_H_
\r
20 #define _PLUGIN_INTERNAL_H_
\r
28 #define ENGINE_UUID "27F277E9-BBC4-4dca-B553-D9884A3CDAA0"
\r
29 #define ENGINE_NAME "Samsung TTS"
\r
30 #define ENGINE_UG_NAME "tts_smt_setting_ug.so"
\r
32 #define VTTS_VOICE_NAME_BUF_SIZE 8
\r
34 typedef char* ttspe_language;
\r
37 ttspe_language lang; /**< Language */
\r
38 ttsp_voice_type_e vctype; /**< Voice type */
\r
39 } ttspe_voice_info_s;
\r
42 ttspe_voice_info_s* voice_info; /**< Voice info array */
\r
43 int size; /**< size of array */
\r
44 } ttspe_voice_list_s;
\r
46 int plugin_Initialize(ttspe_result_cb const cb_func);
\r
48 int plugin_Finalize(void);
\r
50 int plugin_SynthesizeText
\r
52 char* const pszLanguage,
\r
53 ttsp_voice_type_e const eVoiceType,
\r
54 char const * pszTextUtf8,
\r
55 ttsp_speed_e const eSpeechSpeed,
\r
59 int plugin_StopSynthesis(void);
\r
61 int plugin_GetAudioFormat(ttsp_audio_type_e* pType, int* pSamplingRate, int* pnChannels);
\r
63 int plugin_ForeachVoices(ttspe_supported_voice_cb callback, void* user_data);
\r
65 bool plugin_IsValidVoice(const char* language, ttsp_voice_type_e type);
\r
67 int plugin_SetDefaultSpeechSpeed(ttsp_speed_e const SpeechSpeed);
\r
69 int plugin_SetSettingInfo(const char* key, const char* value);
\r
71 int plugin_ForeachEngineSetting(ttspe_engine_setting_cb callback, void* user_data);
\r
73 void plugin_SetDaemonAPIs (ttspd_funcs_s const * pAPIs);
\r
81 #endif /* _PLUGIN_INTERNAL_H_ */
\r