CSWIslts.h revision 8fc5a7f51e62cb4ae44a27bdf4176d04adc80ede
1/*---------------------------------------------------------------------------* 2 * CSWIslts.h * 3 * * 4 * Copyright 2007, 2008 Nuance Communciations, Inc. * 5 * * 6 * Licensed under the Apache License, Version 2.0 (the 'License'); * 7 * you may not use this file except in compliance with the License. * 8 * * 9 * You may obtain a copy of the License at * 10 * http://www.apache.org/licenses/LICENSE-2.0 * 11 * * 12 * Unless required by applicable law or agreed to in writing, software * 13 * distributed under the License is distributed on an 'AS IS' BASIS, * 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 15 * See the License for the specific language governing permissions and * 16 * limitations under the License. * 17 * * 18 *---------------------------------------------------------------------------*/ 19 20 21 22#ifndef _CSWISLTS_H__ 23#define _CSWISLTS_H__ 24 25extern "C" { 26#include <SWIslts.h> 27} 28 29class CSWIslts{ 30public: 31 CSWIslts(); 32 ~CSWIslts(); 33 SWIsltsResult init(); 34 SWIsltsResult term(); 35#ifdef USE_FSM_DICT 36 SWIsltsResult open(const char *data_filename, const char *dictionary_filename); 37#else 38 SWIsltsResult open(const char *data_filename); 39#endif 40 SWIsltsResult close(); 41 SWIsltsResult textToPhone(const char *text, 42 char **output_phone_string, 43 int *output_phone_len, 44 int max_phone_len); 45private: 46 SWIsltsWrapperHand m_sltsWrapHand; 47 SWIsltsHand m_sltsHand; 48}; 49 50#endif /* _SWI_SLTSWRAP_H__ */ 51 52 53