Matlab is unable to detect the sampling frequency of Audio Interface
Mostrar comentarios más antiguos
I have an ASIO audio interface. It is running at 48000Hz. When I check rate using playrec('getDevices'), I see the default sampling rate as 44100Hz. I tried changing the sampling frequency on the device, however Matlab reads the same 44100 Hz.
Is there any way to resolve this issue?
Respuestas (1)
Daniel Shub
el 9 de Dic. de 2011
0 votos
One of the points of playrec, and other port audio interfaces, is to bypass the Microsoft Windows mixer. You need to set the sample rate with playrec, not with the Microsoft Windows mixer.
6 comentarios
Ajay Kumar
el 9 de Dic. de 2011
Daniel Shub
el 10 de Dic. de 2011
I think playrec, and other port audio interfaces, bypass ALL the mixer interfaces and access the device directly. I don't think you need to worry to much about what the interface is saying. Play a 1000 Hz tone with playrec at the desired sample rate and check it with an oscilloscope.
Ajay Kumar
el 12 de Dic. de 2011
Ajay Kumar
el 12 de Dic. de 2011
Daniel Shub
el 13 de Dic. de 2011
I am not sure if a loop back will let you validate the sample rate. I am pretty sure you need either a known signal or a known recording. If it is the start latency that you are worried about, I think the psychtoolbox port audio implementation is the lowest latency implementation that I have seen.
Ajay Kumar
el 14 de Dic. de 2011
Categorías
Más información sobre Using audio files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!