Condividi tramite


SayAs.Format Proprietà

Definizione

Ottiene o imposta il valore dell'attributo format per un say-as elemento nel linguaggio di markup SSML di un prompt.

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

Valore della proprietà

Commenti

La FragmentState.SayAs proprietà ottiene o imposta il valore per la proprietà in un'istanza FormatSayAs di .

Ad esempio, un prompt può contenere la frase "L'ora è <say-as interpret-as="time"> 05:00 </say-as>". In questo esempio, 05:00 può essere pronunciato come "5 ore" o "cinque AM" o "oh cinquecento". La Format proprietà consente di estendere il valore dell'attributo per specificare il formato dell'ora interpret-as da pronunciare. Se il valore per l'attributo interpret-as è "time:24hour", il SpeechSynthesizer parla "oh cinquecento". Se il valore dell'attributo interpret-as è "time:12hour", parla SpeechSynthesizer "five A M".

Si applica a