Classes
The following classes are available globally.
-
Performs classification on audio clips or continuous audio streams.
Declaration
Swift
class AudioClassifier : NSObject -
Protocol adopted by delegates of
AudioClassifierto receive asynchronous classification results in.audioStreammode.Declaration
Swift
protocol AudioClassifierLiveStreamDelegate : NSObjectProtocol -
Options for setting up an
AudioClassifier.Declaration
Swift
class AudioClassifierOptions : TaskOptions, NSCopying -
Represents the classification results generated by
AudioClassifier.Declaration
Swift
class AudioClassifierResult : TaskResult -
Wrapper class for input audio samples backed by a ring buffer.
Declaration
Swift
class AudioData : NSObject -
Describes the channel count and sample rate of incoming audio samples.
Declaration
Swift
class AudioDataFormat : NSObject -
Performs audio embedding extraction on audio clips or continuous audio streams.
Declaration
Swift
class AudioEmbedder : NSObject -
Protocol adopted by delegates of
AudioEmbedderto receive asynchronous embedding results in.audioStreammode.Declaration
Swift
protocol AudioEmbedderLiveStreamDelegate : NSObjectProtocol -
Options for setting up an
AudioEmbedder.Declaration
Swift
class AudioEmbedderOptions : TaskOptions, NSCopying -
Represents the embedding results generated by
AudioEmbedder.Declaration
Swift
class AudioEmbedderResult : TaskResult -
Wrapper class that records audio samples continuously from the device microphone.
Declaration
Swift
class AudioRecord : NSObject -
Performs automatic speech recognition (ASR) on streaming mono PCM float audio samples.
Declaration
Swift
class AudioTranscriber : NSObject -
Options for configuring a MediaPipe
AudioTranscribertask.Declaration
Swift
class AudioTranscriberOptions : TaskOptions, NSCopying -
Represents the transcription results generated by
AudioTranscriber.Declaration
Swift
class AudioTranscriberResult : TaskResult -
Holds the base options used for creation of any MediaPipe task, including model asset path and hardware delegate configuration.
Declaration
Swift
class BaseOptions : NSObject, NSCopying -
Represents the classification results of a model for a single timestamped chunk.
Declaration
Swift
class ClassificationResult : NSObject -
Represents the list of predicted categories for a given classifier head.
Declaration
Swift
class Classifications : NSObject -
Represents the embedding extracted by an embedder task head.
Declaration
Swift
class Embedding : NSObject -
Represents the embedding results of a model.
Declaration
Swift
class EmbeddingResult : NSObject -
Contains a category label, display name, score, and index.
Declaration
Swift
class ResultCategory : NSObject -
MediaPipe TextToSpeech task interface for Swift (iOS / macOS).
Declaration
Swift
final class TextToSpeech : @unchecked Sendable -
Task initialization options for
TextToSpeech.Declaration
Swift
public struct TextToSpeechOptions : Sendable, Equatable -
A single transcribed segment emitted by
AudioTranscriber.Declaration
Swift
class TranscriptionSegment : NSObject -
Incremental mono PCM audio chunk emitted by
TextToSpeech.synthesizeStreamandTtsStream.readNext(also available asAudioChunk).Declaration
Swift
public struct TtsAudioChunk : Sendable, Equatable -
Self-contained mono PCM audio buffer returned by
TextToSpeech.synthesize(also available asAudioResult).Declaration
Swift
public struct TtsAudioResult : Sendable, Equatable -
Bidirectional / pull-based streaming synthesis handle supporting incremental LLM text pushing (
pushText+finishInput) alongsidereadNext()andcancel()(also available asTTSStream).Declaration
Swift
public final class TtsStream : @unchecked Sendable -
Per-utterance synthesis overrides passed to
TextToSpeech(also available asSynthesisOptions).Declaration
Swift
public struct TtsSynthesisOptions : Sendable, Equatable -
Voice metadata descriptor returned by
TextToSpeech.listVoices()(also available asVoiceInfo).Declaration
Swift
public struct TtsVoiceInfo : Sendable, Equatable -
Word-level timing alignment mapping an input word to audio seconds (also available as
WordTimestamp).Declaration
Swift
public struct TtsWordTimestamp : Sendable, Equatable