diff options
author | sooyeon.kim <sooyeon.kim@samsung.com> | 2018-01-11 21:11:26 +0900 |
---|---|---|
committer | sooyeon.kim <sooyeon.kim@samsung.com> | 2018-01-11 21:20:46 +0900 |
commit | 5a82790d100b4ae84912cc3cb6790fd595186582 (patch) | |
tree | 23a5436e933f13126f48f114663239c95790e102 | |
parent | fa24f536441a87e62967be5543db736bd6567ced (diff) | |
download | stt-ref/for/tizen_4.0.tar.gz stt-ref/for/tizen_4.0.tar.bz2 stt-ref/for/tizen_4.0.zip |
Add stte errorsref/for/tizen_4.0
Change-Id: I9bc21d72a6df93bc46ccb7857ad45e3ea3e5d916
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
-rw-r--r-- | include/CMakeLists.txt | 1 | ||||
-rw-r--r-- | include/stte_internal.h | 40 | ||||
-rw-r--r-- | packaging/stt.spec | 1 | ||||
-rw-r--r-- | server/sttd_engine_agent.c | 1 | ||||
-rw-r--r-- | server/sttd_server.c | 1 | ||||
-rwxr-xr-x | server/stte.c | 3 |
6 files changed, 44 insertions, 3 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 5bd87f7..02be26c 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -14,3 +14,4 @@ INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stt_internal.h" DESTINATION ${INCLUDE INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stt_file.h" DESTINATION ${INCLUDEDIR}) INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stt_setting.h" DESTINATION ${INCLUDEDIR}) INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stte.h" DESTINATION ${INCLUDEDIR}) +INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stte_internal.h" DESTINATION ${INCLUDEDIR}) diff --git a/include/stte_internal.h b/include/stte_internal.h new file mode 100644 index 0000000..e0838e0 --- /dev/null +++ b/include/stte_internal.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#ifndef __STTE_INTERNAL_H__ +#define __STTE_INTERNAL_H__ + +#include <tizen.h> + + +#ifdef __cplusplus +extern "C" { +#endif + + +#define STTE_ERROR_TIMED_OUT TIZEN_ERROR_TIMED_OUT + +#define STTE_ERROR_NO_SPEECH TIZEN_ERROR_STT | 0x07 + + + + + +#ifdef __cplusplus +} +#endif + +#endif /* __STTE_INTERNAL_H__ */ + + diff --git a/packaging/stt.spec b/packaging/stt.spec index d1cf964..03350df 100644 --- a/packaging/stt.spec +++ b/packaging/stt.spec @@ -152,3 +152,4 @@ mkdir -p %{TZ_SYS_RO_SHARE}/voice/test %defattr(-,root,root,-) %{_libdir}/pkgconfig/stt-engine.pc %{_includedir}/stte.h +%{_includedir}/stte_internal.h diff --git a/server/sttd_engine_agent.c b/server/sttd_engine_agent.c index 4573cf4..99cee56 100644 --- a/server/sttd_engine_agent.c +++ b/server/sttd_engine_agent.c @@ -24,7 +24,6 @@ #include "sttd_recorder.h" #include "sttd_engine_agent.h" - #define AUDIO_CREATE_ON_START /* diff --git a/server/sttd_server.c b/server/sttd_server.c index d1360ed..4e41e60 100644 --- a/server/sttd_server.c +++ b/server/sttd_server.c @@ -23,6 +23,7 @@ #include "sttd_main.h" #include "sttd_recorder.h" #include "sttd_server.h" +#include "stte_internal.h" #define CLIENT_CLEAN_UP_TIME 500 diff --git a/server/stte.c b/server/stte.c index e60245f..16c27c3 100755 --- a/server/stte.c +++ b/server/stte.c @@ -21,7 +21,6 @@ #include "stte.h" - int stte_main(int argc, char**argv, stte_request_callback_s *callback) { SLOG(LOG_DEBUG, TAG_STTD, "===== Start engine"); @@ -111,4 +110,4 @@ int stte_set_private_data_requested_cb(stte_private_data_requested_cb callback) SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Fail to send speech status"); } return ret; -}
\ No newline at end of file +} |