Repository: stable-diffusion-webui
Issue: [Bug]: Notification sounds don't work on Safari
Labels: bug-report,platform:mac

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

The notification.mp3 does not play on Safari. Chrome works fine.

### Steps to reproduce the problem

1. Install through https://github.com/dylancl/stable-diffusion-webui-mps
2. Add notification.mp3
3. Run server `./run_webui_mac.sh`
4. Use GUI in Chrome, everything works fine
5. Open the page in Safari, get this error in terminal:
```
Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/responses.py", line 331, in __call__
    stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/8k/lh2fqt256xdccrrjgypxb20w0000gn/T/tmptgh0fznj/notificationih724sz4.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/fastapi/applications.py", line 270, in __call__
    await super().__call__(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 75, in __call__
    raise exc
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 64, in __call__
    await self.app(scope, receive, sender)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/routing.py", line 680, in __call__
    await route.handle(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/routing.py", line 275, in handle
    await self.app(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/routing.py", line 68, in app
    await response(scope, receive, send)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/web-ui/lib/python3.10/site-packages/starlette/responses.py", line 334, in __call__
    raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path /private/var/folders/8k/lh2fqt256xdccrrjgypxb20w0000gn/T/tmptgh0fznj/notificationih724sz4.mp3 does not exist.
```
The GUI still works fine, just the notification sound doesn't play.

### What should have happened?

It should work normally and play the notification sound when a run is finished.

### Commit where the problem happens

828438b4a190759807f9054932cae3a8b880ddf1

### What platforms do you use to access UI ?

MacOS

### What browsers do you use to access the UI ?

Google Chrome, Apple Safari

### Command Line Arguments

```Shell
Here's my run_webui_mac.sh:


#!/usr/bin/env bash -l

# This should not be needed since it's configured during installation, but might as well have it here.
conda env config vars set PYTORCH_ENABLE_MPS_FALLBACK=1

# Activate conda environment
conda activate web-ui

# Pull the latest changes from the repo
# git pull --rebase

# Run the web ui
python webui.py --precision full --no-half --use-cpu Interrogate GFPGAN CodeFormer $@

# Deactivate conda environment
conda deactivate
```
```


### Additional information, context and logs

_No response_