AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
TextToSpeechTest.cs
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT License. See LICENSE in the project root for license information.
3
4
using
UnityEngine
;
5
using
System
;
6
7
namespace
HoloToolkit
.Unity.InputModule.Tests
8
{
9
public
class
TextToSpeechTest
: MonoBehaviour
10
{
11
private
TextToSpeech
textToSpeech;
12
13
private
void
Awake()
14
{
15
textToSpeech = GetComponent<TextToSpeech>();
16
}
17
18
public
void
SpeakTime
()
19
{
20
// Say something using the text to speech manager on THIS test class (the "global" one).
21
// This voice will appear to follow the user.
22
textToSpeech.
StartSpeaking
(
"The time is "
+ DateTime.Now.ToString(
"t"
));
23
}
24
}
25
}
HoloToolkit.Unity.InputModule.Tests.TextToSpeechTest.SpeakTime
void SpeakTime()
Definition:
TextToSpeechTest.cs:18
System
HoloToolkit.Unity.TextToSpeech.StartSpeaking
void StartSpeaking(string text)
Speaks the specified text using text-to-speech.
Definition:
TextToSpeech.cs:324
HoloToolkit.Unity.InputModule.Tests.TextToSpeechTest
Definition:
TextToSpeechTest.cs:9
HoloToolkit.Unity.TextToSpeech
Enables text to speech using the Windows 10 SpeechSynthesizer class.
Definition:
TextToSpeech.cs:54
HoloToolkit
UnityEngine
Assets
HoloToolkit-Examples
Utilities
Scripts
TextToSpeechTest.cs
Generated by
1.8.12