TextToSpeechSample Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sample script for text to speech
C++
public ref class TextToSpeechSample : UnityEngine::MonoBehaviour
[UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Audio.TextToSpeech))]
public class TextToSpeechSample : UnityEngine.MonoBehaviour
[<UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Audio.TextToSpeech))>]
type TextToSpeechSample = class
inherit MonoBehaviour
Public Class TextToSpeechSample
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourTextToSpeechSample
- Attributes
-
UnityEngine.RequireComponentAttribute
Speak() |
Start playing Text To Speech generated voice |
Termék | Verziók |
---|---|
MRTK2 Unity 2018 | 2.7.0 |
MRTK2 Unity 2019 | 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.7.0, 2.8.0 |