1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ==============================================================================
15"""Signal processing operations.
16
17See the @{$python/contrib.signal} guide.
18
19@@frame
20@@hamming_window
21@@hann_window
22@@inverse_stft
23@@inverse_stft_window_fn
24@@mfccs_from_log_mel_spectrograms
25@@linear_to_mel_weight_matrix
26@@overlap_and_add
27@@stft
28
29[hamming]: https://en.wikipedia.org/wiki/Window_function#Hamming_window
30[hann]: https://en.wikipedia.org/wiki/Window_function#Hann_window
31[mel]: https://en.wikipedia.org/wiki/Mel_scale
32[mfcc]: https://en.wikipedia.org/wiki/Mel-frequency_cepstrum
33[stft]: https://en.wikipedia.org/wiki/Short-time_Fourier_transform
34"""
35
36from __future__ import absolute_import
37from __future__ import division
38from __future__ import print_function
39
40from tensorflow.contrib.signal.python.ops.mel_ops import linear_to_mel_weight_matrix
41from tensorflow.contrib.signal.python.ops.mfcc_ops import mfccs_from_log_mel_spectrograms
42from tensorflow.contrib.signal.python.ops.reconstruction_ops import overlap_and_add
43from tensorflow.contrib.signal.python.ops.shape_ops import frame
44# `frame` used to be named `frames`, which is a noun and not a verb.
45# Keep an alias to `frames` for backwards compatibility.
46from tensorflow.contrib.signal.python.ops.shape_ops import frame as frames
47from tensorflow.contrib.signal.python.ops.spectral_ops import inverse_stft
48from tensorflow.contrib.signal.python.ops.spectral_ops import inverse_stft_window_fn
49from tensorflow.contrib.signal.python.ops.spectral_ops import stft
50from tensorflow.contrib.signal.python.ops.window_ops import hamming_window
51from tensorflow.contrib.signal.python.ops.window_ops import hann_window
52
53from tensorflow.python.util.all_util import remove_undocumented
54remove_undocumented(__name__)
55