Skip to content

Instantly share code, notes, and snippets.

View eljuguetero's full-sized avatar

Andrés Felipe Calderón de Restrepo eljuguetero

View GitHub Profile
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.4.154 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
@eljuguetero
eljuguetero / capture.py
Last active September 18, 2018 07:26
Python audio capture for Matrix
'''
* Copyright 2017 <andres.calderon@admobilize.com>
* MATRIX Labs [http://creator.matrix.one]
* This file is part of MATRIX Creator HAL
*
* This example is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful, but
var mic = require('mic');
var fs = require('fs');
var micInstance = mic({ 'device':'mic_channel0','rate': '16000', 'channels': '1', 'debug': true, 'exitOnSilence': 6 });
var micInputStream = micInstance.getAudioStream();
var outputFileStream = fs.WriteStream('output.raw');
pcm.sc {
type hw
card 1
}
pcm.mic_channel0 {
type file
file "/tmp/matrix_micarray_channel_0"