diff --git a/__init__.py b/__init__.py old mode 100644 new mode 100755 index cb290f9..166f634 --- a/__init__.py +++ b/__init__.py @@ -1 +1,2 @@ +#!/usr/bin/env python # allow local includes diff --git a/bdlstm_utils.py b/bdlstm_utils.py old mode 100644 new mode 100755 index 6d89cdb..a59d052 --- a/bdlstm_utils.py +++ b/bdlstm_utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import numpy as np import tensorflow as tf diff --git a/densenet_layer.py b/densenet_layer.py old mode 100644 new mode 100755 index 455d43b..ca60164 --- a/densenet_layer.py +++ b/densenet_layer.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +#!/usr/bin/env python #!/usr/bin/python import tensorflow as tf diff --git a/generate_speech_data.py b/generate_speech_data.py old mode 100644 new mode 100755 index 7f522c6..c0b0e4d --- a/generate_speech_data.py +++ b/generate_speech_data.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import os import librosa #mfcc 1.st lib diff --git a/lstm-tflearn.py b/lstm-tflearn.py old mode 100644 new mode 100755 index 0b41490..ec8de9f --- a/lstm-tflearn.py +++ b/lstm-tflearn.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +#!/usr/bin/env python import tensorflow as tf import tflearn diff --git a/lstm_ctc_to_chars.py b/lstm_ctc_to_chars.py old mode 100644 new mode 100755 index 520ea42..495a298 --- a/lstm_ctc_to_chars.py +++ b/lstm_ctc_to_chars.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python from __future__ import print_function import numpy as np diff --git a/lstm_mfcc_ctc_to_words.py b/lstm_mfcc_ctc_to_words.py old mode 100644 new mode 100755 index ef71ec4..69aeb4a --- a/lstm_mfcc_ctc_to_words.py +++ b/lstm_mfcc_ctc_to_words.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python from __future__ import print_function import numpy as np diff --git a/lstm_mfcc_to_chars.py b/lstm_mfcc_to_chars.py old mode 100644 new mode 100755 index 739921b..badbe35 --- a/lstm_mfcc_to_chars.py +++ b/lstm_mfcc_to_chars.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python from __future__ import print_function import numpy as np diff --git a/lstm_to_chars.py b/lstm_to_chars.py old mode 100644 new mode 100755 index 408e91c..f25524b --- a/lstm_to_chars.py +++ b/lstm_to_chars.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +#!/usr/bin/env python ''' Example of a single-layer bidirectional long short-term memory network trained with connectionist temporal classification to predict character sequences from nFeatures x nFrames diff --git a/mfcc_feature_classifier.py b/mfcc_feature_classifier.py old mode 100644 new mode 100755 index 8ac4466..9083a78 --- a/mfcc_feature_classifier.py +++ b/mfcc_feature_classifier.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +#!/usr/bin/env python #!/usr/bin/python import numpy as np import tensorflow as tf diff --git a/number_classifier_tflearn.py b/number_classifier_tflearn.py old mode 100644 new mode 100755 index 548f9e2..97f8800 --- a/number_classifier_tflearn.py +++ b/number_classifier_tflearn.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/bin/env PYTHONIOENCODING="utf-8" python import tflearn import pyaudio diff --git a/number_gan_layer.py b/number_gan_layer.py old mode 100644 new mode 100755 index f2d501f..542a57c --- a/number_gan_layer.py +++ b/number_gan_layer.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/bin/python import speech_data import layer diff --git a/number_gan_tflearn.py b/number_gan_tflearn.py old mode 100644 new mode 100755 index fcbc602..26c943f --- a/number_gan_tflearn.py +++ b/number_gan_tflearn.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import tflearn import pyaudio import speech_data diff --git a/record.py b/record.py old mode 100644 new mode 100755 index e60f819..3264d9a --- a/record.py +++ b/record.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +#!/usr/bin/env python import subprocess import skimage.io import traceback diff --git a/speaker_classifier_tflearn.py b/speaker_classifier_tflearn.py old mode 100644 new mode 100755 index cd45386..f3436d9 --- a/speaker_classifier_tflearn.py +++ b/speaker_classifier_tflearn.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python #!/usr/bin/env PYTHONIOENCODING="utf-8" python import os diff --git a/spectro_gan.py b/spectro_gan.py old mode 100644 new mode 100755 index 3082de9..a8af66f --- a/spectro_gan.py +++ b/spectro_gan.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python import numpy as np import tensorflow as tf diff --git a/speech2text-seq2seq.py b/speech2text-seq2seq.py old mode 100644 new mode 100755 index 1040eeb..4a5a3c5 --- a/speech2text-seq2seq.py +++ b/speech2text-seq2seq.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python diff --git a/speech2text-tflearn.py b/speech2text-tflearn.py old mode 100644 new mode 100755 index e3fadbc..3aab726 --- a/speech2text-tflearn.py +++ b/speech2text-tflearn.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python # -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import diff --git a/speech_data.py b/speech_data.py old mode 100644 new mode 100755 index 1affeee..6b88713 --- a/speech_data.py +++ b/speech_data.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/local/bin/python """Utilities for downloading and providing data from openslr.org, libriSpeech, Pannous, Gutenberg, WMT, tokenizing, vocabularies.""" # TODO! see https://github.com/pannous/caffe-speech-recognition for some data sources diff --git a/speech_encoder.py b/speech_encoder.py old mode 100644 new mode 100755 index 1eb9527..8c24335 --- a/speech_encoder.py +++ b/speech_encoder.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """A simple speech classifer AND autoencoder 1st step : classify+encode the spectogram of 10 spoken digits into one-hot-vector + 'flavor'-vector of size 10 diff --git a/wave_GANerate.py b/wave_GANerate.py old mode 100644 new mode 100755 index 181fd46..69bc7f2 --- a/wave_GANerate.py +++ b/wave_GANerate.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python #!/usr/bin/python # PYTHONUNBUFFERED=1 """A simple GAN network and classifer.