Unverified Commit 2f62e573 authored by jamarshon's avatar jamarshon Committed by GitHub
Browse files

A quick update of docstrings of kaldi.py and transforms.py (#163)

parent 51401084
This diff is collapsed.
...@@ -275,7 +275,7 @@ class MuLawEncoding(torch.jit.ScriptModule): ...@@ -275,7 +275,7 @@ class MuLawEncoding(torch.jit.ScriptModule):
returns a signal encoded with values from 0 to quantization_channels - 1 returns a signal encoded with values from 0 to quantization_channels - 1
Args: Args:
quantization_channels (int): Number of channels. default: 256 quantization_channels (int): Number of channels (Default: 256)
""" """
__constants__ = ['quantization_channels'] __constants__ = ['quantization_channels']
...@@ -303,7 +303,7 @@ class MuLawDecoding(torch.jit.ScriptModule): ...@@ -303,7 +303,7 @@ class MuLawDecoding(torch.jit.ScriptModule):
and returns a signal scaled between -1 and 1. and returns a signal scaled between -1 and 1.
Args: Args:
quantization_channels (int): Number of channels. default: 256 quantization_channels (int): Number of channels (Default: 256)
""" """
__constants__ = ['quantization_channels'] __constants__ = ['quantization_channels']
...@@ -328,10 +328,9 @@ class Resample(torch.nn.Module): ...@@ -328,10 +328,9 @@ class Resample(torch.nn.Module):
be given. be given.
Args: Args:
orig_freq (float): the original frequency of the signal orig_freq (float): The original frequency of the signal
new_freq (float): the desired frequency new_freq (float): The desired frequency
resampling_method (str): the resampling method (Default: 'kaldi' which uses resampling_method (str): The resampling method (Default: 'sinc_interpolation')
sinc interpolation)
""" """
def __init__(self, orig_freq, new_freq, resampling_method='sinc_interpolation'): def __init__(self, orig_freq, new_freq, resampling_method='sinc_interpolation'):
super(Resample, self).__init__() super(Resample, self).__init__()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment