mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Add support for retrieving engine specific settings using the speech API and from dialplan.
(closes issue ASTERISK-17136) Reported by: kenner git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -172,6 +172,12 @@ int ast_speech_change(struct ast_speech *speech, const char *name, const char *v
|
||||
return (speech->engine->change ? speech->engine->change(speech, name, value) : -1);
|
||||
}
|
||||
|
||||
/*! \brief Get an engine specific attribute */
|
||||
int ast_speech_get_setting(struct ast_speech *speech, const char *name, char *buf, size_t len)
|
||||
{
|
||||
return (speech->engine->get_setting ? speech->engine->get_setting(speech, name, buf, len) : -1);
|
||||
}
|
||||
|
||||
/*! \brief Create a new speech structure using the engine specified */
|
||||
struct ast_speech *ast_speech_new(const char *engine_name, const struct ast_format_cap *cap)
|
||||
{
|
||||
|
Reference in New Issue
Block a user