Package org.mcpjava.server.content
Interface AudioContent
- All Superinterfaces:
ContentBlock,MetaCarrier
Audio data content
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating audio contents -
Method Summary
Modifier and TypeMethodDescriptionOptional annotations for the clientstatic AudioContent.BuilderCreates a new builder for anAudioContentbyte[]data()Returns the audio datamimeType()Returns the MIME type of the audio datastatic AudioContentCreates a newAudioContentMethods inherited from interface org.mcpjava.server.MetaCarrier
metadata
-
Method Details
-
data
byte[] data()Returns the audio data- Returns:
- the audio data as a byte array
-
mimeType
String mimeType()Returns the MIME type of the audio data- Returns:
- the MIME type
-
annotations
Optional<Annotations> annotations()Optional annotations for the client- Returns:
- the annotations
-
builder
Creates a new builder for anAudioContent- Parameters:
data- the audio datamimeType- the MIME type of the audio data- Returns:
- the audio content builder
-
of
Creates a newAudioContent- Parameters:
data- the audio datamimeType- the MIME type of the audio data- Returns:
- the new audio content
-