text: #!/usr/bin/env python
  
  import numpy
  from python_speech_features import *
  
  from common_util import print_c_array
  
  def gen():
      nframes = 16
      nrows = 4
  
      numpy.random.seed(42)
      volume = numpy.random.rand(nrows, nframes).astype(numpy.float32)
  
      fft_len = nframes-1
      y = numpy.fft.rfft(volume, fft_len)
      #print(len(y))
      #print(numpy.absolute(y))
  
      #a = numpy.absolute(y)
      #print(a.shape)
  
      #print('sum = ', numpy.sum(a, 1))
  
      print('const float g_input[] = {' + print_c_array(volume) + '};')
      print('const float g_reference[] = {' + print_c_array(y) + '};')
      print('const size_t k_fft_len = {};'.format(fft_len))
      print('const size_t k_nframes = {};'.format(nframes))
      print('const size_t k_nrows = {};'.format(nrows))
  
  gen()
  