Platforms to show: All Mac Windows Linux Cross-Platform
NSSpeechSynthesizerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Speech | MBS MacCocoa Plugin | 6.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Available in Mac OS X v10.3 and later.
More details on Apple's website:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSpeechSynthesizer_Class/
- 5 events
- event didEncounterErrorAtIndex(characterIndex as Integer, text as string, message as string)
- event didEncounterSyncMessage(message as string)
- event didFinishSpeaking(finishedSpeaking as boolean)
- event willSpeakPhoneme(phonemeOpcode as Integer)
- event willSpeakWord(Position as Integer, Length as Integer, Text as String)
- 5 properties
- property IsSpeaking as boolean
- property rate as Double
- property UsesFeedbackWindow as boolean
- property Voice as string
- property volume as Double
- 15 methods
- method addSpeechDictionary(speechDictionary as dictionary)
- method Constructor
- method Constructor(voice as string)
- method continueSpeaking
- method Destructor
- method objectForProperty(PropertyName as string, byref error as NSErrorMBS) as Variant
- method pauseSpeakingAtBoundary(boundary as Integer)
- method phonemesFromText(text as string) as string
- method setObjectForProperty(value as Variant, PropertyName as string, byref error as NSErrorMBS) as boolean
- method SetVoice(voice as string) as boolean
- method StartSpeakingString(text as string) as boolean
- method StartSpeakingString(text as string, file as folderitem) as boolean
- method startSpeakingString(Text as String, URL as string) as boolean
- method StopSpeaking
- method stopSpeakingAtBoundary(boundary as Integer)
- 50 shared methods
- shared method attributesForVoice(voice as String) as NSVoiceMBS
- shared method availableVoice(index as Integer) as String
- shared method availableVoices as String()
- shared method availableVoicesCount as Integer
- shared method defaultVoice as String
- shared method isAnyApplicationSpeaking as boolean
- shared method NSSpeechCharacterModeProperty as String
- shared method NSSpeechCommandDelimiterProperty as String
- shared method NSSpeechCommandPrefix as String
- shared method NSSpeechCommandSuffix as String
- shared method NSSpeechCurrentVoiceProperty as String
- shared method NSSpeechDictionaryAbbreviations as String
- shared method NSSpeechDictionaryEntryPhonemes as String
- shared method NSSpeechDictionaryEntrySpelling as String
- shared method NSSpeechDictionaryLocaleIdentifier as String
- shared method NSSpeechDictionaryModificationDate as String
- shared method NSSpeechDictionaryPronunciations as String
- shared method NSSpeechErrorCount as String
- shared method NSSpeechErrorNewestCharacterOffset as String
- shared method NSSpeechErrorNewestCode as String
- shared method NSSpeechErrorOldestCharacterOffset as String
- shared method NSSpeechErrorOldestCode as String
- shared method NSSpeechErrorsProperty as String
- shared method NSSpeechInputModeProperty as String
- shared method NSSpeechModeLiteral as String
- shared method NSSpeechModeNormal as String
- shared method NSSpeechModePhoneme as String
- shared method NSSpeechModeText as String
- shared method NSSpeechNumberModeProperty as String
- shared method NSSpeechOutputToFileURLProperty as String
- shared method NSSpeechPhonemeInfoExample as String
- shared method NSSpeechPhonemeInfoHiliteEnd as String
- shared method NSSpeechPhonemeInfoHiliteStart as String
- shared method NSSpeechPhonemeInfoOpcode as String
- shared method NSSpeechPhonemeInfoSymbol as String
- shared method NSSpeechPhonemeSymbolsProperty as String
- shared method NSSpeechPitchBaseProperty as String
- shared method NSSpeechPitchModProperty as String
- shared method NSSpeechRateProperty as String
- shared method NSSpeechRecentSyncProperty as String
- shared method NSSpeechResetProperty as String
- shared method NSSpeechStatusNumberOfCharactersLeft as String
- shared method NSSpeechStatusOutputBusy as String
- shared method NSSpeechStatusOutputPaused as String
- shared method NSSpeechStatusPhonemeCode as String
- shared method NSSpeechStatusProperty as String
- shared method NSSpeechSynthesizerInfoIdentifier as String
- shared method NSSpeechSynthesizerInfoProperty as String
- shared method NSSpeechSynthesizerInfoVersion as String
- shared method NSSpeechVolumeProperty as String
- 3 constants
Constants
Constant | Value | Description |
---|---|---|
NSSpeechImmediateBoundary | 0 |
One of the constants for the pauseSpeakingAtBoundary method.
Mac OS X 10.5 only. |
NSSpeechSentenceBoundary | 2 |
One of the constants for the pauseSpeakingAtBoundary method.
Mac OS X 10.5 only. |
NSSpeechWordBoundary | 1 |
One of the constants for the pauseSpeakingAtBoundary method.
Mac OS X 10.5 only. |
This class has no sub classes.
Some examples using this class:
- /MacClassic/Speech/Speech recorder
- /MacCocoa/Speech/NSSpeechSynthesizer
- /MacCocoa/Speech/NSSpeechSynthesizer Progress
Blog Entries
- MBS Xojo / Real Studio Plugins, version 15.0pr9
- MBS Xojo / Real Studio Plugins, version 13.2pr7
- MBS Real Studio Plugins, version 13.1pr11
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSSpeechRecognizerMBS - NSSpellCheckerMBS