AudioPart
Audio message part (Gemini 2.0+) Supports audio input and output for multimodal interactions
Inherits: Part
Operations
GetBase64Data
Get Base64 encoding audio string
method : public : GetBase64Data() ~ StringReturn
| Type | Description |
|---|---|
| String | encoding audio string |
GetData
Get raw audio data
method : public : GetData() ~ Byte[]Return
| Type | Description |
|---|---|
| Byte | audio data bytes |
GetMimeType
Get MIME type
method : public : GetMimeType() ~ StringReturn
| Type | Description |
|---|---|
| String | MIME type |
New
Constructor for audio input/output
New(data:Byte[], mime_type:String)Parameters
| Name | Type | Description |
|---|---|---|
| data | Byte | audio data in bytes |
| mime_type | String | MIME type (e.g., "audio/wav", "audio/mp3", "audio/pcm") |
ToString
String representation of the object
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation |