Search Results for

    Show / Hide Table of Contents

    Class SpeechToTextRequest

    Inheritance
    object
    SpeechToTextRequest
    Implements
    IMultipartFormRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Microsoft.Azure
    Assembly: Glitch9.AIDevKit.Provider.Microsoft.Azure.dll
    Syntax
    public class SpeechToTextRequest : IMultipartFormRequest

    Properties

    | Edit this page View Source

    Dimension

    Optional. Defines the output criteria. Accepted values are:

    Basic ??shows the accuracy score only. Comprehensive ??shows scores on more dimensions (for example, fluency score and completeness score on the full-text level, and error type on the word level).

    Default: Basic.

    Declaration
    [JsonProperty("Dimension")]
    public string Dimension { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    EnableMiscue

    Optional. Enables miscue calculation. With this enabled, the pronounced words are compared to the reference text and marked with omission or insertion based on the comparison. Accepted values: False, True. Default: False.

    Declaration
    [JsonProperty("EnableMiscue")]
    public bool? EnableMiscue { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    EnableProsodyAssessment

    Optional. Enables prosody assessment for pronunciation evaluation. Assesses stress, intonation, speaking speed, and rhythm, providing insights into naturalness and expressiveness. If set to True, the ProsodyScore result value is returned.

    Declaration
    [JsonProperty("EnableProsodyAssessment")]
    public bool? EnableProsodyAssessment { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    File

    Declaration
    public byte[] File { get; set; }
    Property Value
    Type Description
    byte[]
    | Edit this page View Source

    Format

    Optional.
    Specifies the result format. Accepted values are simple and detailed.

    Simple results include:

    • RecognitionStatus
    • DisplayText
    • Offset
    • Duration

      Detailed responses include four different representations of display text.
      The default setting is simple.
    Declaration
    [QueryParameter("format")]
    public string Format { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    GradingSystem

    Optional. The point system for score calibration. The FivePoint system gives a 0-5 floating point score, and HundredMark gives a 0-100 floating point score. Default: FivePoint.

    Declaration
    [JsonProperty("GradingSystem")]
    public string GradingSystem { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Granularity

    Optional. The evaluation granularity. Accepted values are:

    Phoneme ??shows the score on the full-text, word, and phoneme levels. Word ??shows the score on the full-text and word levels. FullText ??shows the score on the full-text level only.

    Default: Phoneme.

    Declaration
    [JsonProperty("Granularity")]
    public string Granularity { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Language

    Required.
    Identifies the spoken language that's being recognized. See Supported languages.

    Declaration
    [QueryParameter("language")]
    public string Language { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Profanity

    Optional.
    Specifies how to handle profanity in recognition results. Accepted values are:

    • masked, which replaces profanity with asterisks.
    • removed, which removes all profanity from the result.
    • raw, which includes profanity in the result.


      The default setting is masked.
    Declaration
    [QueryParameter("profanity")]
    public string Profanity { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ReferenceText

    Required. The text that the pronunciation is evaluated against.

    Declaration
    [JsonProperty("ReferenceText")]
    public string ReferenceText { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ScenarioId

    Optional. A GUID that indicates a customized point system.

    Declaration
    [JsonProperty("ScenarioId")]
    public string ScenarioId { get; set; }
    Property Value
    Type Description
    string

    Implements

    IMultipartFormRequest

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation