[asterisk-commits] file: trunk r74551 - in /trunk: include/asterisk/speech.h res/res_speech.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 11 11:03:31 CDT 2007


Author: file
Date: Wed Jul 11 11:03:31 2007
New Revision: 74551

URL: http://svn.digium.com/view/asterisk?view=rev&rev=74551
Log:
Change the speech API to allow passing the format through to the engine.

Modified:
    trunk/include/asterisk/speech.h
    trunk/res/res_speech.c

Modified: trunk/include/asterisk/speech.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/speech.h?view=diff&rev=74551&r1=74550&r2=74551
==============================================================================
--- trunk/include/asterisk/speech.h (original)
+++ trunk/include/asterisk/speech.h Wed Jul 11 11:03:31 2007
@@ -73,7 +73,7 @@
 	/*! Name of speech engine */
 	char *name;
 	/*! Set up the speech structure within the engine */
-	int (*create)(struct ast_speech *speech);
+	int (*create)(struct ast_speech *speech, int format);
 	/*! Destroy any data set on the speech structure by the engine */
 	int (*destroy)(struct ast_speech *speech);
 	/*! Load a local grammar on the speech structure */

Modified: trunk/res/res_speech.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_speech.c?view=diff&rev=74551&r1=74550&r2=74551
==============================================================================
--- trunk/res/res_speech.c (original)
+++ trunk/res/res_speech.c Wed Jul 11 11:03:31 2007
@@ -185,7 +185,7 @@
 	ast_speech_change_state(new_speech, AST_SPEECH_STATE_NOT_READY);
 
 	/* Pass ourselves to the engine so they can set us up some more and if they error out then do not create a structure */
-	if (engine->create(new_speech)) {
+	if (engine->create(new_speech, format)) {
 		ast_mutex_destroy(&new_speech->lock);
 		ast_free(new_speech);
 		new_speech = NULL;




More information about the asterisk-commits mailing list