| 1 | /* |
| 2 | * Copyright 2024 KylinSoft Co., Ltd. |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify it under |
| 5 | * the terms of the GNU General Public License as published by the Free Software |
| 6 | * Foundation, either version 3 of the License, or (at your option) any later |
| 7 | * version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 11 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 12 | * details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along with |
| 15 | * this program. If not, see <https://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #ifndef SERVERERROR_H |
| 19 | #define SERVERERROR_Hcxx . . $ `xunfei/speech/servererror.h:19:9`! |
| 20 | |
| 21 | #include <string> |
| 22 | #include <kylin-ai/ai-engine/aiengineerror.h> |
| 23 | |
| 24 | namespace xunfei_speech_server_errorcxx . . $ xunfei_speech_server_error/ { |
| 25 | |
| 26 | int parseErrorCodecxx . . $ xunfei_speech_server_error/parseErrorCode(7787e0c995c81e02).(const stdcxx . . $ std/::stringcxx . . $ std/string# &result); |
| 27 | |
| 28 | struct EngineErrorCodecxx . . $ xunfei_speech_server_error/EngineErrorCode# { |
| 29 | ai_enginecxx . . $ ai_engine/::EngineErrorCategorycxx . . $ ai_engine/EngineErrorCategory# categorycxx . . $ xunfei_speech_server_error/EngineErrorCode#category.{ |
| 30 | ai_enginecxx . . $ ai_engine/::EngineErrorCategorycxx . . $ ai_engine/EngineErrorCategory#::Invalidcxx . . $ ai_engine/EngineErrorCategory#Invalid.}; |
| 31 | ai_enginecxx . . $ ai_engine/::SpeechEngineErrorCodecxx . . $ ai_engine/SpeechEngineErrorCode# errorCodecxx . . $ xunfei_speech_server_error/EngineErrorCode#errorCode.{ |
| 32 | ai_enginecxx . . $ ai_engine/::SpeechEngineErrorCodecxx . . $ ai_engine/SpeechEngineErrorCode#::UnsupportedScriptcxx . . $ ai_engine/SpeechEngineErrorCode#UnsupportedScript.}; |
| 33 | }; |
| 34 | |
| 35 | EngineErrorCodecxx . . $ xunfei_speech_server_error/EngineErrorCode# asrErrorCode2speechResultcxx . . $ xunfei_speech_server_error/asrErrorCode2speechResult(74a90cedbce30e3f).(int errorCode); |
| 36 | |
| 37 | EngineErrorCodecxx . . $ xunfei_speech_server_error/EngineErrorCode# realtimeAsrErrorCode2speechResultcxx . . $ xunfei_speech_server_error/realtimeAsrErrorCode2speechResult(74a90cedbce30e3f).(int errorCode); |
| 38 | |
| 39 | EngineErrorCodecxx . . $ xunfei_speech_server_error/EngineErrorCode# ttsErrorCode2speechResultcxx . . $ xunfei_speech_server_error/ttsErrorCode2speechResult(74a90cedbce30e3f).(int errorCode); |
| 40 | |
| 41 | } // namespace xunfei_speech_server_error |
| 42 | |
| 43 | #endif |