表示自定義語音辨識的基類文法。 已在1.5.0版中新增。
成員
語法
語法:public inline explicit Grammar ( SPXGRAMMARHANDLE hgrammar );
內部建構函式。 使用提供的句柄建立新的實例。
參數
-
hgrammar文法句柄。
~語法
語法:public inline virtual ~Grammar ( );
解構函式,不執行任何動作。
運算子 SPXGRAMMARHANDLE
語法:public inline explicit operator SPXGRAMMARHANDLE ( );
內部。 明確轉換運算子。
退貨
句柄。
FromStorageId
語法:public inline static std::shared_ptr< Grammar > FromStorageId ( const std::string & storageId );
從記憶體標識碼建立文法。 已在1.7.0版中新增。
參數
-
storageId)語言模型的保存記憶體標識碼。
退貨
文法。
從記憶體標識碼建立文法只能在特定案例中使用,而且通常不可能。