pub struct EmbeddedSpeechConfig {
    pub config: SpeechConfig,
}
Expand description

Class that defines embedded (offline) configurations for speech recognition and speech synthesis. This is currently a preview of the API. The functionality is not available in public releases. Added in version 1.19.0

Fields

config: SpeechConfig

Implementations

Creates an instance of the embedded speech config with a specified offline model path for speech recognition and/or synthesis.

  • path: the folder path to search for offline models. This can be a root path under which several models are located in sub-folders, or a direct path to a specific model folder.

Creates an instance of the embedded speech config with specified offline model paths for speech recognition and/or synthesis.

  • paths: The folder paths to search for offline models. These can be root paths under which several models are located in sub-folders, or direct paths to specific model folders.

Gets a list of available speech recognition models.

Sets the model for speech recognition.

  • model: The recognition model
  • model_key: The model decryption key.

Gets the model name for speech recognition.

Sets the speech recognition output format.

  • format: Speech recognition output format (simple or detailed).

Gets the speech recognition output format.

Sets the profanity option. This can be used to remove profane words or mask them.

  • profanity: Sets the profanity option. This can be used to remove profane words or mask them.

Gets the voice name for embedded speech synthesis.

Sets the speech synthesis output format (e.g. Riff16Khz16BitMonoPcm).

Gets the speech synthesis output format.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.