I have .mat audio data set. But when i use following code, I can't change .mat to .wav and i can't save it. I use Ubuntu +spyder + keras.

my code:

import scipy.io as sio
from scipy.io import wavfile
import numpy as np
import glob

audio_path= β€˜/home/narges/dataset/vowel/’
audios= glob.glob(audio_path+ β€œ*.mat”)
audio= sio.loadmat(audio_path)

When i use the .mat file, this code run correctly. But i want all of my .mat file in the vowel folder run by this code. I expected convert .mat to wav and save it.

0 Answers