return MA_ERROR_NONE;
}
+int ma_set_assistant_language(const char* language)
+{
+ MA_SLOGD("[Manager] Set assistant language");
+ return ma_set_assistant_wakeup_language(language);
+}
+
int ma_set_assistant_wakeup_language(const char* language)
{
MA_SLOGD("[Manager] Set assistant wakeup language");
{
#endif
+/**
+ * @brief An alias for 'ma_set_assistant_wakeup_language' function.
+ * @details Since the function name has been change from 'ma_set_assistant_language'
+ * to 'ma_set_assistant_wakeup_language' during the API review phase,
+ * this function should be provided for supporting backward compatibility.
+ * It will be removed all references are replaced with the newly added API.
+ * @since_tizen 5.5
+ *
+ * @param[in] language The language configuration that will be used for wake word detection.
+ * It should be denoted by two-letter code defined by IS 639-1,
+ * optionally combined with two-letter code defined by ISO 3166.
+ * For example, "ko_KR" for Korean, "en_US" for American English.
+ *
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #MA_ERROR_NONE Successful
+ * @retval #MA_ERROR_NOT_SUPPORTED Not supported
+ * @retval #MA_ERROR_INVALID_STATE Invalid state
+ *
+ * @pre The state should be #MA_STATE_READY.
+ */
+int ma_set_assistant_language(const char* language);
+
#ifdef __cplusplus
}
#endif