Skip to content

Instantly share code, notes, and snippets.

@shriphani
Created November 10, 2015 09:00
Show Gist options
  • Save shriphani/6b4fed50a3aabd73eb5f to your computer and use it in GitHub Desktop.
Save shriphani/6b4fed50a3aabd73eb5f to your computer and use it in GitHub Desktop.
%module webrtc_vad
%{
#define SWIG_FILE_WITH_INIT
#include "webrtc/common_audio/vad/include/webrtc_vad.h"
%}
%include "stdint.i"
%include "numpy.i"
%init %{
import_array();
%}
%apply (const int16_t* IN_ARRAY1, int DIM1) {(const int16_t* audio_frame, size_t frame_length)};
%include "webrtc/common_audio/vad/include/webrtc_vad.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment