audio-input
Set the microphone input an iOS Simulator app hears to an audio file, a tone, or the real microphone. Call it right before recording so the app captures the intended source.
Instructions
Set what apps in an iOS Simulator hear as microphone input: an audio file, a tone, or the real microphone. A file starts playing on this call, so call it right before the action that makes the app record.
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": {
"udid": "<udid>",
"source": "<source>"
},
"name": "audio-input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Audio file, required for source=file. | |
| udid | Yes | Target iOS Simulator UDID from `list-devices`. | |
| plays | No | source=file only. Times the file plays. Default 1. Minimum: 1. | |
| source | Yes | `file` plays `path`, `tone` a sine wave, `microphone` restores the real microphone. | |
| bundleId | No | App under test; the result then reports `appReady`. | |
| amplitude | No | source=tone only. Default 0.4. Range: 0.01 to 1. | |
| frequencyHz | No | source=tone only. Default 1000. Range: 20 to 20000. |