coqui.Path.write_bytes(data)

Open the file in bytes mode, write to it, and close the file.