Method CreateAudio
- Namespace
- Sisk.ModelContextProtocol
- Assembly
- Sisk.ModelContextProtocol.dll
CreateAudio(ReadOnlySpan<byte>, string)
Creates an audio-based result for an MCP tool.
public static McpToolResult CreateAudio(ReadOnlySpan<byte> audioBytes, string mimeType = "audio/wav")
Parameters
audioBytesReadOnlySpan<byte>The byte array representing the audio data.
mimeTypestringThe MIME type of the audio (e.g., "audio/wav"). Defaults to "audio/wav".
Returns
- McpToolResult
An McpToolResult representing an audio result.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語