Condividi tramite


SayAs.InterpretAs Proprietà

Definizione

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

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

Valore della proprietà

Commenti

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

SpeechSynthesizer Utilizza il tipo di contenuto indicato dalla InterpretAs proprietà per determinare come eseguire il rendering del testo specificato.

Ad esempio, il nome Edgar può essere pronunciato come nome: "Il mio nome è Edgar". Oppure potrebbe essere scritto con lettere, come specificato con l'attributo interpret-as in questa frase: "My name is <say-as interpret-as="spell-out"> Edgar </say-as>". In questo caso, il SpeechSynthesizer parla Edgar come "E D G A R".

Si applica a