This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TARGET=android-26 | |
INSTALLATION_PATH=`realpath .`/build | |
NDK_ROOT="/opt/android/android-ndk-r19c" | |
TOOLCHAIN=`pwd`/toolchains | |
OPENSSL_PATH="/home/brian/Projects/OpenSSL-for-Android-Prebuilt/openssl-1.1.1" | |
ZLIB_PATH="/opt/android/android-ndk-r19c/platforms/android-26/arch-arm/usr/lib" | |
$NDK_ROOT/build/tools/make-standalone-toolchain.sh --arch=arm --platform=$TARGET --install-dir=$TOOLCHAIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Response> | |
<Say voice="alice">안녕하세요. </Say> | |
<Play>http://demo.twilio.com/docs/classic.mp3</Play> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf # >= 2.0.0-alpha0 | |
import librosa | |
import numpy as np | |
import time | |
from os import listdir | |
from os.path import isfile, join | |
from os.path import splitext | |
tf.config.gpu.set_per_process_memory_fraction(0.9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import numpy as np | |
from keras.models import load_model | |
import time | |
event_list = ['bathhub', 'shower', 'sink', 'toiletflush', 'others'] | |
input_shape = (1, 1, 110250) | |
def postprocessing(response): | |
response = np.reshape(response, (len(event_list))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import tempfile | |
import numpy as np | |
import tensorflow as tf | |
import sox | |
import pyaudio | |
import librosa | |
import logging | |
import tempfile | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import tensorflow as tf | |
import sox | |
import pyaudio | |
import librosa | |
import logging | |
import tempfile | |
import numpy as np | |
from pydub import AudioSegment | |
from six.moves import queue |