SayAs.Format Propiedad

Definición

Obtiene o establece el valor del atributo format de un elemento say-as en el lenguaje de marcado SSML de un mensaje.

public:
 property System::String ^ Format { System::String ^ get(); void set(System::String ^ value); };
public string Format { get; set; }
member this.Format : string with get, set
Public Property Format As String

Valor de propiedad

String

Comentarios

La FragmentState.SayAs propiedad obtiene o establece el valor de la propiedad en una instancia de Format SayAs .

Por ejemplo, un mensaje puede contener la frase "La hora es <say-as interpret-as="time"> 05:00 </say-as> ". En este ejemplo, se podría decir "cinco en 05:00 punto", "cinco a. m." o "oh cinco cientos". La propiedad permite extender el valor del atributo para Format especificar qué formato de hora interpret-as hablar. Si el valor del interpret-as atributo es "time:24hour", SpeechSynthesizer el dice "oh five hundred". Si el valor del interpret-as atributo es "time:12hour", SpeechSynthesizer habla "five A M".

Se aplica a