title: Load FLAC file in python same as scipy or librosa
body: <p>I would like to feed some flac sound files into a keras model. With wavfiles I can do (contrived example with one audio file used twice)</p>
  
  <pre><code>import scipy.io.wavfile
  import numpy as np
  import keras
  from keras.models import Sequential
  from keras.layers import Dense, Dropout, Activation
  from keras.optimizers import SGD
  
  path = 'path/to/file.wav'
  _, audio = scipy.io.wavfile.read(path)
  dataset = [audio, audio]
  x_train = np.array(dataset)
  y_train = keras.utils.to_categorical([0, 1], num_classes=2)
  
  model = Sequential()
  model.add(Dense(32, activation='relu', input_shape=x_train[0].shape))
  model.add(Dense(2, activation='softmax'))
  model.compile(optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy'])
  model.fit(x_train, y_train, epochs=10, batch_size=32)
  </code></pre>
  
  <p>How do I do this with flac files instead?</p>