5/6/2023 0 Comments Matlab audiodevice![]() ![]() Why is this so? why cant i enable ASIO driver for both speaker and microphone?Īlso, another problem faced is that there is echo from my speech, which is not intended. setpref('dsp', 'portaudioHostApi', 3) ĭeviceReader = audioDeviceReader('Driver', 'ASIO', 'Device', ASIO Fireface USB', 'SamplesPerFrame', 1024, 'SampleRate', 48000) ĭeviceWriter = audioDeviceWriter('Driver', 'WASAPI', 'Device', 'Analog (3+4) (RME Fireface UC)', 'SampleRate', 48000, 'BufferSize', 64) However, it only works if I use ASIO for the mic, and WASAPI for the speaker, i.e. Latency is reduced when buffersize is reduced to 64, which is the furthest I can go before clicks and pops occur. How do I successfully enable ASIO in order to reduce real time audio latency?Įdit: using matlab 2018b which has the audio system toolbox. setpref('dsp', 'portaudioHostApi', 3) ĭeviceReader = audioDeviceReader('Device', 'Analog (1+2) (RME Fireface UC)', 'SamplesPerFrame', 1024, 'SampleRate', 48000) ĭeviceWriter = audioDeviceWriter('Device', 'Analog (3+4) (RME Fireface UC)', 'SampleRate', 48000, 'BufferSize', 1024) However when ASIO driver is not enabled, for eg in the following code, there is real time output sound, but there is noticeable latency. ![]() The buffer size settings obtained from asiosettings(deviceWriter.Device) is set to 1024 as well. From now on you can simply use OutIDto access the correct ID (unless you restart MATLAB or you clear this variable in that case you have to re-dene the variable). ![]() When I enable ASIO driver for eg in the above code, there is no output sound. remember the ID associated with this particular output audio device. setpref('dsp', 'portaudioHostApi', 3) ĭeviceReader = audioDeviceReader('Driver', 'ASIO', 'Device', 'ASIO Fireface USB', 'SamplesPerFrame', 1024, 'SampleRate', 48000) ĭeviceWriter = audioDeviceWriter('Driver', 'ASIO', 'Device', 'ASIO Fireface USB', 'SampleRate', 48000, 'BufferSize', 1024) ![]()
0 Comments
Leave a Reply. |