calculate_frame_size
Calculate packed float32 mono WAV sample count, payload bytes, total bytes, and durations. Pure calculation; no audio rendering or saved data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"samplesPerFrame": "<samplesPerFrame>",
"frameCount": "<frameCount>",
"sampleRate": "<sampleRate>"
},
"name": "calculate_frame_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameCount | Yes | Number of frames packed into the WAV | |
| sampleRate | Yes | WAV sample-rate header, in Hz | |
| samplesPerFrame | Yes | Samples in each single-cycle frame |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameCount | Yes | ||
| sampleRate | Yes | ||
| samplesPerFrame | Yes | ||
| payloadByteCount | Yes | ||
| totalSampleCount | Yes | ||
| frameDurationSeconds | Yes | ||
| totalDurationSeconds | Yes | ||
| fileByteCountWithHeader | Yes | ||
| frameDurationSecondsAtRate | Yes |