**System Information**
any
**Blender Version**
any
**Short description of error**
The operator does not seem to check the validity of the filepath, because normally it is triggered from the UI
after a fileselect dialog. If filepath passed by the user in the form of a script is invalid then the operator
can't assume the filepath is valid, but it does and still tries to run. It will give errors, some of which are listed here,
and none of which are as informative as they could be.
errors
- SyntaxError (unicode-error) 'unicodescape' codec can't decode bytes in position 2-3 truncated \UXXXXXXXX escape
- RuntimeError: Error: Unsupported audio format
Ideally it would check the filepath, and return an error about how to construct a valid file path or a reference to a docstring with tips for the various operating systems. Something like:
valid filepaths are.
# windows
filepath = "C:\\some\\folder\\file.mp3"
filepath = r"C:\some\folder\file.mp3"
filepath = "C:/some/folder/file.mp3"
# posix style (linux, osx)
filepath = "/home/folder/file.mp3"
**why the verbose message?**
because paths are hard for people who make this kind of mistake, why not be more helpful. Alternatively a more verbose entry in the helpfile for that operator.
**Exact steps for others to reproduce the error**
plenty of posts to pick from:
http://blender.stackexchange.com/questions/15288/sound-bake-by-script-unsupported-audio-format-error?rq=1