Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
SPFILEMODE
SPFILEMODE lists the file opening state used by ISpStream::BindToFile and the helper function SPBindToFile.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef enum SPFILEMODE { SPFM_OPEN_READONLY, SPFM_OPEN_READWRITE, SPFM_CREATE, SPFM_CREATE_ALWAYS, SPFM_NUM_MODES } SPFILEMODE;</strong> </pre>
Elements
- SPFM_OPEN_READONLY
Opens the existing file in read-only mode. This will fail if the file does not exist. - SPFM_OPEN_READWRITE
Opens the existing file in read-write mode. This will fail if the file does not exist. - SPFM_CREATE
Opens the file if one exists, or creates the file if one does not exist. This flag indicates that the file will be opened in read-write mode. - SPFM_CREATE_ALWAYS
Creates the file, even if the file already exists and deletes the previous file. This flag indicates that the file will be opened in read-write mode. - SPFM_NUM_MODES
This flag is used for limit checking.