获取一段音频的频谱 #define SAMPLE_RATE 8000 #define SAMPLE_SIZE 256 signed short audioData[SAMPLE_SIZE]; // read audioData complex data[SAMPLE_SIZE]; for (int i = 0; i < SAMPLE_SIZE; i++) data[i] = (float)*((signed short*)audioData+ i); CFFT::Forward(data, SAMPLE_SIZE); const float value_scale = 1.