赞
踩
支持的Unity版本:5.3.1 及以上版本
功能:语音转文字
*不需要为自己的声音行事
*多个音色变换
*多个扬声器 同时对讲(说话)
*NPC聊天转换等。。。。
•生成的音频可以存储到文件中。
1).右键可以直接添加到 Hierarchy面板
2).添加后的样子
字符串为朗读内容
using System.Collections; using System.Collections.Generic; using UnityEngine; using Crosstales.RTVoice.Tool; using Crosstales.RTVoice; public class SpeakerTools : MonoBehaviour { public SpeechText SpeechText; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if (Input.GetKeyDown(KeyCode.A)) { SpeechText.Speak(); } } }
添加脚本后赋值 直接可以运行!单机A就可以听到SpeechText的内容
⭐:注意
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。