Sprog

AzureStandardVoice Class

Definition

Azure standard voice configuration.

public class AzureStandardVoice : Azure.AI.VoiceLive.AzureVoice, System.ClientModel.Primitives.IJsonModel<Azure.AI.VoiceLive.AzureStandardVoice>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.VoiceLive.AzureStandardVoice>
type AzureStandardVoice = class
    inherit AzureVoice
    interface IJsonModel<AzureStandardVoice>
    interface IPersistableModel<AzureStandardVoice>
Public Class AzureStandardVoice
Inherits AzureVoice
Implements IJsonModel(Of AzureStandardVoice), IPersistableModel(Of AzureStandardVoice)
Inheritance
AzureStandardVoice
Implements

Constructors

Name Description
AzureStandardVoice(String)

Initializes a new instance of AzureStandardVoice.

Properties

Name Description
CustomLexiconUrl

URL of a custom lexicon file for pronunciation customization.

CustomTextNormalizationUri

URL of a custom text normalization endpoint.

Locale

Enforced locale in BCP-47 format for TTS output. If set, TTS will always use the specified locale to speak. For example, setting locale to en-US forces American English accent for all text content, even if the text is in another language, and TTS will output silence for unsupported languages (e.g., Chinese text with en-US locale). If not set, TTS automatically detects the language from the text content.

Name

Voice name cannot be empty.

Pitch

Pitch adjustment for the voice output. Follows the same rules as the pitch attribute of the SSML prosody element (see https://learn.microsoft.com/azure/ai-services/speech-service/speech-synthesis-markup-voice#adjust-prosody). Typical values: a named level (x-low, low, medium, high, x-high, default), a relative change (e.g., +10%, -5%, +50Hz, -2st), or an absolute frequency (e.g., 200Hz).

PreferLocales

Preferred locales in BCP-47 format that change the accents of languages. If not set, TTS uses the default accent for each language (e.g., American English for English, Mexican Spanish for Spanish). Setting this to ["en-GB", "es-ES"] changes the English accent to British English and the Spanish accent to European Spanish, while TTS can still speak other languages like French or Chinese with their default accents.

Rate

Speaking rate adjustment for the voice output. Follows the same rules as the rate attribute of the SSML prosody element (see https://learn.microsoft.com/azure/ai-services/speech-service/speech-synthesis-markup-voice#adjust-prosody). Typical values: a named level (x-slow, slow, medium, fast, x-fast, default), a relative percentage (e.g., +20%, -10%), or a non-negative multiplier (e.g., 0.5, 1.5).

Style

Speaking style for the voice (e.g., 'cheerful', 'sad').

Temperature

Temperature must be between 0.0 and 1.0.

Volume

Volume adjustment for the voice output. Follows the same rules as the volume attribute of the SSML prosody element (see https://learn.microsoft.com/azure/ai-services/speech-service/speech-synthesis-markup-voice#adjust-prosody). Typical values: a named level (silent, x-soft, soft, medium, loud, x-loud, default), an absolute number from 0.0 to 100.0, or a relative change (e.g., +10, -6dB).

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<AzureStandardVoice>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<AzureStandardVoice>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<AzureVoice>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from AzureVoice)
IJsonModel<AzureVoice>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from AzureVoice)
IPersistableModel<AzureStandardVoice>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<AzureStandardVoice>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<AzureStandardVoice>.Write(ModelReaderWriterOptions)
IPersistableModel<AzureVoice>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from AzureVoice)
IPersistableModel<AzureVoice>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from AzureVoice)
IPersistableModel<AzureVoice>.Write(ModelReaderWriterOptions) (Inherited from AzureVoice)

Applies to