audio_set_stream
Assign an audio file to a Godot audio player node, adjusting volume and pitch for playback.
Instructions
Set an audio stream for an audio player.
Category: Audio
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) player_path: Path to the audio player node audio_file_path: Path to the audio file (relative to project, e.g., "sounds/music.ogg") volume_db: Volume in decibels (default: 0.0, range: -80 to 24) pitch_scale: Pitch scaling factor (default: 1.0, range: 0.01 to 4.0)
Returns: Success message or error description
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": {
"project_path": "<project_path>",
"scene_path": "<scene_path>",
"player_path": "<player_path>",
"audio_file_path": "<audio_file_path>"
},
"name": "audio_set_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| player_path | Yes | ||
| audio_file_path | Yes | ||
| volume_db | No | ||
| pitch_scale | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |