我想遍历安装在设备上的所有声音。
在TextSoSpeech元数据中,我看到
namespace Android.Speech.Tts
{
public class TextToSpeech : Java.Lang.Object
{
[Obsolete("deprecated")]
public virtual ICollection<Voice> Voices { get; }尽管已经过时了,我还是想使用“公共虚拟ICollection语音{ get;}”。
我不知道如何使用Xamarin获得已安装的声音。
但是,我从来没有遍历过ICollection。
如何做到这一点?
我试着从
ICollection<Voice>nVoices = Android.Speech.Tts.TextToSpeech.但是".Voices“不是该名称空间的一部分。
https://stackoverflow.com/questions/47499228
复制相似问题