shanqing-cai / audapter_matlab

MATLAB code for Audapter
MIT License
13 stars 18 forks source link

Getting error during online demo #14

Open YanaPalacheva opened 2 years ago

YanaPalacheva commented 2 years ago

Hi! First of all, thank you for the software and a very descriptive manual.

I'm trying to set Audapter up for our speech experiment, however I am getting an "Index out of bounds" error. Here's the stacktrace:

audapterDemo_online('persistentPitchShift', 'fb', 1);
Set deviceName to: Roland Rubix
Action Start:  1
Please say something...
Action End:  2
     0

Index in position 2 exceeds array bounds. Index must not exceed 1.

Error in AudapterIO (line 311)
                data.signalOut      = signalMat(:,2);

Error in audapterDemo_online (line 304)
    data = AudapterIO('getData');

I get the voice feedback, but it sounds incredibly corrupted (high-pitched and flickering).

I'm using Roland Rubix24 sound card, I adapted the core parameters (state, frameLen, downFact) but it seems that it's not the problem (I tried different value to see if something changes). The sound generation works good, as well as the offline demos. Also, pitch perturbation in Max8 works without problems.

Maybe you faced this problem or can direct me where to look at?

All the best, Yana

I'm using Windows 10, Matlab R2022a.