I\'d like to query my audio device and get all its available sample rates. I\'m using PyAudio 0.2, which runs on top of PortAudio v19, on an Ubuntu machine with Python 2.6.
Directly using Portaudio you can run the command below:
for (int i = 0, end = Pa_GetDeviceCount(); i != end; ++i) {
PaDeviceInfo const* info = Pa_GetDeviceInfo(i);
if (!info) continue;
printf("%d: %s\n", i, info->name);
}