Answered
How to get the name of each file in the folder
If you have access to Audio Toolbox, using an audioDatastore might simplify this. Here is an example (make sure the function myC...

2 years ago | 0

Answered
Error in Matlab Coder: "Property 'pBuffer.Cache' is undefined on some execution paths but is used inside the called function."
He Bernd, I suspect coder is not sure this while loop will ever be entered. This should work (I added a call to write outside t...

2 years ago | 1

| accepted

Answered
How to use few files from audioDatastore after reading the whole wav files?
Hi Krishna, You can use subset for this. Something like: ads = subset(ads,ads.Labels==1 || ads.Labels==2)

2 years ago | 0

| accepted

Answered
Matlab Audio Filter with changing Frequency
Hi Hans, Take a look at dsp.VariableBandwidthFIRFilter or dsp.VariableBandwidthIIRFIlter. They both support bandpass tunable fi...

2 years ago | 0

Answered
creating the chorus effect without using a loop
Damien, Audio Toolbox has a Chorus object that might be helpful. See audiopluginexample.Chorus here. It is used in this example...

2 years ago | 1

Answered
What "Window" value or size mean when using the audioFeatureExtractor function
Feature extraction operates along windows of audioIn: You first take the first 1024 samples of audioIn and process them, then yo...

2 years ago | 1

| accepted

Answered
Timestamp of Pitch in Audio file
The pitch function has a second output argument that returns the location of the corresponding pitch values in f0. [f0, loc]...

2 years ago | 0

| accepted

Answered
How to classify Speech feature using local datset
There are many classification examples you can go through as a staritng point. Here are two: Acoustics-Based Machine Fault Reco...

2 years ago | 0

Answered
Audio Pitch Manipulation Through Time
you can use shiftPitch for this: %Read in an audio file and listen to it. [audioIn,fs] = audioread('Counting-16-44p1-mono-15se...

2 years ago | 0

Answered
Voice Audio Data and Pitch Extraction
You can use the pitch function to get pitch values along with the time stamps [x,fs] = audioread("SingingAMajor-16-mono-18secs....

2 years ago | 0

| accepted

Answered
segmentation of 66s signal in 1s each
The buffer function can do this for you: fs = 16e3; x = randn(66*fs,1); y = buffer(x,fs);

2 years ago | 0

Answered
how can i load multiple/all audio files(.wav) in matlab ? all files have different names.
I recommend using audioDatastore for such tasks: % specify your folder folder = fullfile(matlabroot,'toolbox','audio','samples...

2 years ago | 0

Answered
Code generation error while using the Audio Toolbox
Hi Alberto, I see two issues here: 1) First, you have hit a limitation of dsp.FilterCascade. It does not support variable-size...

2 years ago | 1

| accepted

Answered
AudioBasedAnomalyDetectionForMachineHealthMonitoringExample.mlx
Hi Monique, Sorry about this error. Here is the correct link to get the zip file.

2 years ago | 0

Answered
playing a nonstop audio file
You can use dsp.AudioFileReader with PlayCount set to Inf: afr = dsp.AudioFileReader('speech_dft.mp3','PlayCount',Inf); adw = ...

2 years ago | 0

Answered
I have a folder full of audio files and i want read files one by one and compute some parameters and store the result in a matrix any one plese help
Hi Kalyan, For this sort of task, consider using audioDatastore. For example, here is the code to point to a number of audio...

2 years ago | 0

Answered
Recreating Sine Wave from pitch detection
Hi Hans, Here is some code that approximates what you want. It uses: audioOscillator to create a frequency-varying sine wave s...

2 years ago | 0

| accepted

Answered
Generate VST Plug-in from Simulink Model
Hi Michael, This is not possible yet. Today, you can use Audio Toolbox to generate VST plug-ins from MATLAB code: https://www....

2 years ago | 1

Answered
looping in all audio files
audioDatastore can simplify this type of task. ads = audioDatastore(yourFolder); % Read all files, one by one, using a while...

2 years ago | 0

Answered
Unexpected output of octaveFilter
Hi Leonard, The first thing to check is that your input is a column vector. octaveFilter treats each column of data as an ind...

2 years ago | 0

| accepted

Answered
i want to use LSTM based audio network to work with Live audio
Hi Arslan, audioDeviceReader supports multi-mic devices. Use the ChannelMappingSource and ChannelMapping properties to map betw...

2 years ago | 0

Answered
i want to use LSTM based audio network to work with Live audio
Hi Arslan, There is a function in that repo (streamingClassifier) that should get the job done in conjunction with an audio dev...

2 years ago | 0

Answered
Cannot find files or folders matching: 'C:\Users\Computer Complex\AppData\Local\Temp\free-spoken-digit-dataset-master\recordings'.
This dataset does not ship with the product. The introduction/description of this example should have the info on where to downl...

2 years ago | 0

| accepted

Answered
How to record audio for infinite time?
Hi Harsha, You can record for as long as you want with audioDeviceReader: deviceReader = audioDeviceReader; while 1 % for ex...

2 years ago | 0

Answered
I want to stop my simulink code after 10 seconds of running
This should work: sim(modelname, 15)

2 years ago | 0

Answered
why does the wave player Block in Simulink do this when i loop a sound and how can i fix it?
Hi ALCA, the From Multimedia File block has a 'Samples per audio channel' parameter. This determines the size of the frame. If...

2 years ago | 0

| accepted

Answered
record and analyse real-time audio
Hi Oskar, When working with real-time audio, you should consider audioDeviceWriter, audioDeviceReader and audioPlayerRecorder. ...

2 years ago | 0

| accepted

Answered
Expected audioIn to be one of these types: single, double Instead its type was cell.
Hi FOG, In this call to extract,trainAudio is a cell array: featuresTrain = extract(aFE,trainAudio); extract does not support...

2 years ago | 0

Answered
How to use getaudiodata() in Simulink?
Hi Ahmet, To interact with a microphone device in Simulink, use the Audio Device Reader block: https://www.mathworks.com/help/...

2 years ago | 0

Answered
Pre-trained network on the raspberry pi
Hi Joenam, This example might be helpful to you: Speech Command Recognition Code Generation on Raspberry Pi

2 years ago | 0

Load more