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
22 #include "plugin_internal.h"
\r
25 char * _pszEngineUUID;
\r
26 char * _pszEngineName;
\r
27 char * _pszEngineUgName;
\r
31 int ttsp_load_engine(ttspd_funcs_s* pdfuncs, ttspe_funcs_s* pefuncs)
\r
35 printf("parameter1, pdfuncs is NULL.");
\r
36 return TTSP_ERROR_INVALID_PARAMETER;
\r
40 printf("parameter2, pefuncs is NULL.");
\r
41 return TTSP_ERROR_INVALID_PARAMETER;
\r
44 pefuncs->size = sizeof(ttspe_funcs_s);
\r
45 pefuncs->version = 1;
\r
47 pefuncs->initialize = plugin_Initialize;
\r
48 pefuncs->deinitialize = plugin_Finalize;
\r
50 pefuncs->start_synth = plugin_SynthesizeText;
\r
51 pefuncs->cancel_synth = plugin_StopSynthesis;
\r
52 pefuncs->get_audio_format = plugin_GetAudioFormat;
\r
54 pefuncs->foreach_voices = plugin_ForeachVoices;
\r
55 pefuncs->is_valid_voice = plugin_IsValidVoice;
\r
57 pefuncs->set_engine_setting = plugin_SetSettingInfo;
\r
58 pefuncs->foreach_engine_setting = plugin_ForeachEngineSetting;
\r
60 plugin_SetDaemonAPIs(pdfuncs);
\r
62 printf("[SMT] ttsp_load_engine() : version(%d), (6.20110527), size(%d)\n", pefuncs->version, pefuncs->size);
\r
64 return TTSP_ERROR_NONE;
\r
67 void ttsp_unload_engine(void)
\r
69 printf("[SMT] ttsp_unload_engine() \n");
\r
72 int ttsp_get_engine_info(ttsp_engine_info_cb callback, void* user_data)
\r
75 callback(ENGINE_UUID, ENGINE_NAME, ENGINE_UG_NAME, false, user_data);
\r