承接ARKit案例开发/宣传Demo开发/游戏开发 QQ:2118590660
http://edu.manew.com/user/98138
此功能无法编译器测试
添加TextToSpeechManager脚本 AudioSource到物体上
创建一个SpeechControl脚本
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using HoloToolkit.Unity;
public class SpeechControl : MonoBehaviour
{
public static TextToSpeechManager TextToSpeech;
void Start()
{
TextToSpeech = this.transform.GetComponent<TextToSpeechManager>();
if (TextToSpeech != null)
{
TextToSpeech.Voice = TextToSpeechVoice.Mark;
Welcome ();
}
}
public void Welcome()
{
TextToSpeech.SpeakText("welcome to the airport dispatch center,you can create an airport dispatch center and can schedule operations");
}
}