c# - Where is NSVoiceLocaleIdentifier on Xamarin.Mac? -


i aware grouped other similar entities enum. searching google, searching assemblies returned no answers. so, nsvoicelocaleidentifier on xamarin.mac?

note: there "no" defined constants compile time validation nsvoicelocaleidentifier strings dynamic based upon os install. if want complete list, have them @ application runtime.

nsvoice​locale​identifier available within nsdictionary returned particular voice.

no serbian (sv_sv) on system, there 64 others...

i.e.

  • com.apple.speech.synthesis.voice.zarvox usa english based (en_us)
  • com.apple.speech.synthesis.voice.thomas french (fr-fr)

example:

foreach (var voice in nsspeechsynthesizer.availablevoices) {     console.writeline(voice);     var attributes = nsspeechsynthesizer.attributesforvoice(voice);     foreach (var item in attributes)     {         if (item.key.tostring() == "voiceindividuallyspokencharacters" ||             item.key.tostring() == "voicesupportedcharacters")             continue;         console.writeline($"\t{item.key}:{item.value}");     }     console.writeline(); } 

example output:

com.apple.speech.synthesis.voice.zarvox     voiceshowinfulllistonly:1     voicegender:voicegenderneuter     voiceidentifier:com.apple.speech.synthesis.voice.zarvox     voiceversion:3.6     voicedemotext:that looks peaceful planet.     voicelanguage:en-us     voiceage:1     voicename:zarvox     voicelocaleidentifier:en_us  com.apple.speech.synthesis.voice.thomas     voicename:thomas     voicegroup:voicegroupcompact     voicelocaleidentifier:fr_fr     voiceshowinfulllistonly:0     voicedemotext:bonjour, je m’appelle thomas. je suis une voix française.     voicegender:voicegendermale     voicenumericid:251973347     voiceage:35     voiceidentifier:com.apple.speech.synthesis.voice.thomas     voiceversion:5.0.7     voicenameroot:thomas     voicesynthesizernumericid:1886745202     voicerelativedesirability:3800     voicelanguage:fr-fr 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -