Platforms to show: All Mac Windows Linux Cross-Platform

Back to SFSpeechAudioBufferRecognitionRequestMBS class.

SFSpeechAudioBufferRecognitionRequestMBS.appendAudioPCMBuffer(audioPCMBuffer as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SpeechRecognition MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Appends audio in the PCM format to the end of the recognition request.

audioPCMBuffer: An audio buffer (AVAudioPCMBufferMBS class) that contains audio in the PCM format.

The audio must be in a native format and uncompressed.

SFSpeechAudioBufferRecognitionRequestMBS.appendAudioSampleBuffer(sampleBuffer as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SpeechRecognition MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Appends audio to the end of the recognition request.

sampleBuffer: A buffer of audio. Must be CMSampleBufferMBS class.

The audio must be in a native format.

SFSpeechAudioBufferRecognitionRequestMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SpeechRecognition MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

SFSpeechAudioBufferRecognitionRequestMBS.endAudio

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SpeechRecognition MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Marks the end of audio input for the recognition request.

Call this method explicitly to let the speech recognizer know that no more audio input is coming.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...