Sdílet prostřednictvím


SpeechTranslationConfig Class

Definition

Speech translation configuration.

public sealed class SpeechTranslationConfig : Microsoft.CognitiveServices.Speech.SpeechConfig
type SpeechTranslationConfig = class
    inherit SpeechConfig
Public NotInheritable Class SpeechTranslationConfig
Inherits SpeechConfig
Inheritance
SpeechTranslationConfig

Properties

AuthorizationToken

Gets or sets the authorization token.

(Inherited from SpeechConfig)
EndpointId

Gets or sets the endpoint ID of a custom speech model to use for speech recognition, or a custom voice model for speech synthesis.

(Inherited from SpeechConfig)
OutputFormat

Gets or sets the speech recognition output format: simple or detailed.

(Inherited from SpeechConfig)
Region

Region.

(Inherited from SpeechConfig)
SpeechRecognitionLanguage

Specifies the name of spoken language to be recognized, in BCP-47 format.

(Inherited from SpeechConfig)
SpeechSynthesisLanguage

Gets or sets the speech synthesis language, e.g. en-US. Added in 1.4.0

(Inherited from SpeechConfig)
SpeechSynthesisOutputFormat

Gets the output format of synthesized speech. Added in 1.4.0

Example value: riff-16khz-16bit-mono-pcm

(Inherited from SpeechConfig)
SpeechSynthesisVoiceName

Gets or sets the speech synthesis voice. Added in 1.4.0

(Inherited from SpeechConfig)
SubscriptionKey

Subscription key.

(Inherited from SpeechConfig)
TargetLanguages

Gets a collection of languages to translate to.

VoiceName

Specifies the name of voice tag if a synthesized audio output is desired.

Methods

AddTargetLanguage(String)

Adds a target languages of translation.

EnableAudioLogging()

Enable audio and content logging in the service. Added in 1.5.0

(Inherited from SpeechConfig)
EnableDictation()

Enable dictation during continuous recognition. Added in 1.5.0

(Inherited from SpeechConfig)
FromAuthorizationToken(String, String)

Creates an instance of the speech translation config with specified authorization token and region.

FromEndpoint(Uri, String)

Creates an instance of the speech translation config with specified endpoint and subscription key.

FromEndpoint(Uri)

Creates an instance of the speech translation config with specified endpoint. Added in 1.5.0

FromHost(Uri, String)

Creates an instance of the speech translation config with specified host and subscription key. Added in 1.8.0

FromHost(Uri)

Creates an instance of the speech translation config with specified host. Added in 1.8.0

FromSubscription(String, String)

Creates an instance of speech translation config with specified subscription key and region.

GetProperty(PropertyId)

Searches for the property named with this PropertyId enumeration. Added in 1.3.0

(Inherited from SpeechConfig)
GetProperty(String)

Searches for the property that has this string name.

(Inherited from SpeechConfig)
RemoveTargetLanguage(String)

Removes a target languages of translation. Added in 1.7.0

RequestWordLevelTimestamps()

Include word-level timestamps. When audio logging is enabled, this method adds time details about the start point and duration of each word to the log. Added in 1.5.0

(Inherited from SpeechConfig)
SetCustomModelCategoryId(String)

Sets a Category Id that will be passed to service. Category Id is used to find the custom model.

SetProfanity(ProfanityOption)

Sets profanity option. The profanity option can remove profane words, or replace their letters with stars. Added in 1.5.0

(Inherited from SpeechConfig)
SetProperty(PropertyId, String)

Sets the value of a property specified by a value in the PropertyId enumeration. Added in 1.3.0

(Inherited from SpeechConfig)
SetProperty(String, String)

Sets a property using a string name.

(Inherited from SpeechConfig)
SetProxy(String, Int32, String, String)

Configures proxy with username-password pair. Added in 1.1.0

Note: Proxy functionality is not available on macOS. This method will have no effect on the macOS platform.

(Inherited from SpeechConfig)
SetProxy(String, Int32)

Configures proxy. Added in 1.3.0

(Inherited from SpeechConfig)
SetServiceProperty(String, String, ServicePropertyChannel)

Enables preview of new service features.

(Inherited from SpeechConfig)
SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat)

Sets the speech synthesis output format. Added in 1.4.0

(Inherited from SpeechConfig)

Applies to