I am working on audio processing. I have a audio vector and I want to save it as a audio file. I tried this code, but it has the coming error:
audiowrite('Output.wav',o,fs)
_ Error using audiowrite>validateFilename (line 323) Cannot create file Output.wav. Permission Denied.
Error in audiowrite (line 105) [props.filename, fileExisted] = validateFilename( props.filename );_

 Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Oct. de 2015

0 votos

If Output.wav already exists in your current directory then it is either not owned by you or you do not have permission to write to it.
If Output.wav does not already exist in your current directory then you do not have permission to write in your current directory.
The most common cause for a problem like this is that you have your current directory set to one where MATLAB is installed instead of being set to one of your own directories.

5 comentarios

Peyman Ghasemi
Peyman Ghasemi el 2 de Oct. de 2015
I changed my directory and now it works! Thanks!
Fayid Ayoob
Fayid Ayoob el 31 de En. de 2017
Please explain how to change directory?
Walter Roberson
Walter Roberson el 31 de En. de 2017
Use cd to change directories
Tjeerd Bakker
Tjeerd Bakker el 19 de Sept. de 2019
In the command line, execute "cd .." as often as needed to get to the root of your PC. Then use "cd FOLDERNAME" to navigate to location where you have your .m script.
Izadora Mustaffa
Izadora Mustaffa el 19 de Sept. de 2021
I changed the directory, but I still have the same problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with Audio Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 1 de Oct. de 2015

Comentada:

el 19 de Sept. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by