***

title: stop_background_file
slug: /reference/python/agents/function-result/stop-background-file
description: Stop the currently playing background audio file.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[functionresult]: /docs/server-sdks/reference/python/agents/function-result

Stop the currently playing background audio file.

## **Parameters**

None.

## **Returns**

[`FunctionResult`][functionresult] — self, for chaining.

## **Example**

```python {11}
from signalwire import AgentBase
from signalwire import FunctionResult

agent = AgentBase(name="my-agent", route="/agent")
agent.set_prompt_text("You are a helpful assistant.")

@agent.tool(name="stop_hold_music", description="Stop hold music playback")
def stop_hold_music(args, raw_data):
    return (
        FunctionResult("I'm back.")
        .stop_background_file()
    )

agent.serve()
```