Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Speech.AttributesForVoices

Queries attributes for a voice.

Component Version macOS Windows Linux Server iOS SDK
Speech 11.0 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "Speech.AttributesForVoices"; Voice )   More

Parameters

Parameter Description Example
Voice The voice to use.
Can be empty to use default voice.
On macOS and iOS, this is identifier, not name.
"com.apple.speech.synthesis.voice.alva"

Result

Returns JSON text or error.

Description

Queries attributes for a voice.
The returned JSON dictionary is not the same for macOS and iOS in structure. Different keys may be present/used.

Examples

Try it with Alva:

MBS( "Speech.AttributesForVoices"; "com.apple.speech.synthesis.voice.alva")

Example result:
{ "VoiceName" : "Alva", "VoiceGroup" : "VoiceGroupCompact", "VoiceLocaleIdentifier" : "sv_SE", "VoiceShowInFullListOnly" : false, "VoiceDemoText" : "Hej, jag heter Alva. Jag är en svensk röst.", "VoiceSupportedCharacters" : [ { "UnicodeCharEnd" : 77, "UnicodeCharBegin" : 33 }, { "UnicodeCharEnd" : 85, "UnicodeCharBegin" : 79 }, { "UnicodeCharEnd" : 109, "UnicodeCharBegin" : 87 }, { "UnicodeCharEnd" : 117, "UnicodeCharBegin" : 111 }, { "UnicodeCharEnd" : 129, "UnicodeCharBegin" : 119 }, { "UnicodeCharEnd" : 141, "UnicodeCharBegin" : 141 }, { "UnicodeCharEnd" : 144, "UnicodeCharBegin" : 143 }, { "UnicodeCharEnd" : 157, "UnicodeCharBegin" : 157 }, { "UnicodeCharEnd" : 167, "UnicodeCharBegin" : 160 }, { "UnicodeCharEnd" : 174, "UnicodeCharBegin" : 169 }, { "UnicodeCharEnd" : 255, "UnicodeCharBegin" : 176 }, { "UnicodeCharEnd" : 339, "UnicodeCharBegin" : 338 }, { "UnicodeCharEnd" : 353, "UnicodeCharBegin" : 352 }, { "UnicodeCharEnd" : 376, "UnicodeCharBegin" : 376 }, { "UnicodeCharEnd" : 382, "UnicodeCharBegin" : 381 }, { "UnicodeCharEnd" : 402, "UnicodeCharBegin" : 402 }, { "UnicodeCharEnd" : 710, "UnicodeCharBegin" : 710 }, { "UnicodeCharEnd" : 732, "UnicodeCharBegin" : 732 }, { "UnicodeCharEnd" : 8212, "UnicodeCharBegin" : 8211 }, { "UnicodeCharEnd" : 8218, "UnicodeCharBegin" : 8216 }, { "UnicodeCharEnd" : 8222, "UnicodeCharBegin" : 8220 }, { "UnicodeCharEnd" : 8226, "UnicodeCharBegin" : 8226 }, { "UnicodeCharEnd" : 8230, "UnicodeCharBegin" : 8230 }, { "UnicodeCharEnd" : 8250, "UnicodeCharBegin" : 8249 }, { "UnicodeCharEnd" : 8352, "UnicodeCharBegin" : 8352 }, { "UnicodeCharEnd" : 8364, "UnicodeCharBegin" : 8364 }, { "UnicodeCharEnd" : 8482, "UnicodeCharBegin" : 8482 } ], "VoiceLocalizedNames" : { "he" : "אלווה", "uk" : "Альва" }, "VoiceGender" : "VoiceGenderFemale", "VoiceNumericID" : 587208531, "VoiceAge" : "35", "VoiceIndividuallySpokenCharacters" : [ { "UnicodeCharEnd" : 77, "UnicodeCharBegin" : 33 }, { "UnicodeCharEnd" : 85, "UnicodeCharBegin" : 79 }, { "UnicodeCharEnd" : 109, "UnicodeCharBegin" : 87 }, { "UnicodeCharEnd" : 117, "UnicodeCharBegin" : 111 }, { "UnicodeCharEnd" : 129, "UnicodeCharBegin" : 119 }, { "UnicodeCharEnd" : 141, "UnicodeCharBegin" : 141 }, { "UnicodeCharEnd" : 144, "UnicodeCharBegin" : 143 }, { "UnicodeCharEnd" : 157, "UnicodeCharBegin" : 157 }, { "UnicodeCharEnd" : 167, "UnicodeCharBegin" : 160 }, { "UnicodeCharEnd" : 174, "UnicodeCharBegin" : 169 }, { "UnicodeCharEnd" : 255, "UnicodeCharBegin" : 176 }, { "UnicodeCharEnd" : 339, "UnicodeCharBegin" : 338 }, { "UnicodeCharEnd" : 353, "UnicodeCharBegin" : 352 }, { "UnicodeCharEnd" : 376, "UnicodeCharBegin" : 376 }, { "UnicodeCharEnd" : 382, "UnicodeCharBegin" : 381 }, { "UnicodeCharEnd" : 402, "UnicodeCharBegin" : 402 }, { "UnicodeCharEnd" : 710, "UnicodeCharBegin" : 710 }, { "UnicodeCharEnd" : 732, "UnicodeCharBegin" : 732 }, { "UnicodeCharEnd" : 8212, "UnicodeCharBegin" : 8211 }, { "UnicodeCharEnd" : 8218, "UnicodeCharBegin" : 8216 }, { "UnicodeCharEnd" : 8222, "UnicodeCharBegin" : 8220 }, { "UnicodeCharEnd" : 8226, "UnicodeCharBegin" : 8226 }, { "UnicodeCharEnd" : 8230, "UnicodeCharBegin" : 8230 }, { "UnicodeCharEnd" : 8250, "UnicodeCharBegin" : 8249 }, { "UnicodeCharEnd" : 8352, "UnicodeCharBegin" : 8352 }, { "UnicodeCharEnd" : 8364, "UnicodeCharBegin" : 8364 }, { "UnicodeCharEnd" : 8482, "UnicodeCharBegin" : 8482 } ], "VoiceIdentifier" : "com.apple.speech.synthesis.voice.alva", "VoiceNameRoot" : "Alva", "VoiceSynthesizerNumericID" : 1886745202, "VoiceVersion" : "7.0.4", "VoiceRelativeDesirability" : 3800, "VoiceLanguage" : "sv-SE" }

Release notes

Blog Entries

This function checks for a license.

Created 28th December 2020, last changed 28th December 2020


Socket.WriteMLLP - Speech.AvailableVoices