你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SpeechConfig.SetProperty Method

Definition

Overloads

SetProperty(PropertyId, String)

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

SetProperty(String, String)

Sets a property using a string name.

SetProperty(PropertyId, String)

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

public void SetProperty(Microsoft.CognitiveServices.Speech.PropertyId id, string value);
member this.SetProperty : Microsoft.CognitiveServices.Speech.PropertyId * string -> unit
Public Sub SetProperty (id As PropertyId, value As String)

Parameters

id
PropertyId

PropertyId of the property

value
String

New value of the property

Applies to

SetProperty(String, String)

Sets a property using a string name.

public void SetProperty(string name, string value);
member this.SetProperty : string * string -> unit
Public Sub SetProperty (name As String, value As String)

Parameters

name
String

Name of the property

value
String

Value of the property

Remarks

A small number of properties are stored using string names. In most cases, you will use **SetProperty(PropertyId, String)** instead of this method.

Applies to