Skip to content

Commit bb77a7f

Browse files
authored
Fix (#3980)
1 parent 59d641b commit bb77a7f

File tree

25 files changed

+47
-47
lines changed

25 files changed

+47
-47
lines changed

.github/ISSUE_TEMPLATE/bug-report-s2t.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If applicable, add screenshots to help explain your problem.
3333
- Python Version [e.g. 3.7]
3434
- PaddlePaddle Version [e.g. 2.0.0]
3535
- Model Version [e.g. 2.0.0]
36-
- GPU/DRIVER Informationo [e.g. Tesla V100-SXM2-32GB/440.64.00]
36+
- GPU/DRIVER Information [e.g. Tesla V100-SXM2-32GB/440.64.00]
3737
- CUDA/CUDNN Version [e.g. cuda-10.2]
3838
- MKL Version
3939
- TensorRT Version

.github/ISSUE_TEMPLATE/bug-report-tts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If applicable, add screenshots to help explain your problem.
3232
- Python Version [e.g. 3.7]
3333
- PaddlePaddle Version [e.g. 2.0.0]
3434
- Model Version [e.g. 2.0.0]
35-
- GPU/DRIVER Informationo [e.g. Tesla V100-SXM2-32GB/440.64.00]
35+
- GPU/DRIVER Information [e.g. Tesla V100-SXM2-32GB/440.64.00]
3636
- CUDA/CUDNN Version [e.g. cuda-10.2]
3737
- MKL Version
3838
- TensorRT Version

audio/paddleaudio/backends/soundfile_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def resample(y: np.ndarray,
6161
if mode == 'kaiser_best':
6262
warnings.warn(
6363
f'Using resampy in kaiser_best to {src_sr}=>{target_sr}. This function is pretty slow, \
64-
we recommend the mode kaiser_fast in large scale audio trainning')
64+
we recommend the mode kaiser_fast in large scale audio training')
6565

6666
if not isinstance(y, np.ndarray):
6767
raise ParameterError(

audio/paddleaudio/compliance/kaldi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def spectrogram(waveform: Tensor,
233233
round_to_power_of_two (bool, optional): If True, round window size to power of two by zero-padding input
234234
to FFT. Defaults to True.
235235
sr (int, optional): Sample rate of input waveform. Defaults to 16000.
236-
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a singal frame when it
236+
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a signal frame when it
237237
is set True. Otherwise performs reflect padding to the end of waveform. Defaults to True.
238238
subtract_mean (bool, optional): Whether to subtract mean of feature files. Defaults to False.
239239
window_type (str, optional): Choose type of window for FFT computation. Defaults to "povey".
@@ -443,7 +443,7 @@ def fbank(waveform: Tensor,
443443
round_to_power_of_two (bool, optional): If True, round window size to power of two by zero-padding input
444444
to FFT. Defaults to True.
445445
sr (int, optional): Sample rate of input waveform. Defaults to 16000.
446-
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a singal frame when it
446+
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a signal frame when it
447447
is set True. Otherwise performs reflect padding to the end of waveform. Defaults to True.
448448
subtract_mean (bool, optional): Whether to subtract mean of feature files. Defaults to False.
449449
use_energy (bool, optional): Add an dimension with energy of spectrogram to the output. Defaults to False.
@@ -566,7 +566,7 @@ def mfcc(waveform: Tensor,
566566
round_to_power_of_two (bool, optional): If True, round window size to power of two by zero-padding input
567567
to FFT. Defaults to True.
568568
sr (int, optional): Sample rate of input waveform. Defaults to 16000.
569-
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a singal frame when it
569+
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a signal frame when it
570570
is set True. Otherwise performs reflect padding to the end of waveform. Defaults to True.
571571
subtract_mean (bool, optional): Whether to subtract mean of feature files. Defaults to False.
572572
use_energy (bool, optional): Add an dimension with energy of spectrogram to the output. Defaults to False.

audio/paddleaudio/datasets/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self,
4747
files (:obj:`List[str]`): A list of absolute path of audio files.
4848
labels (:obj:`List[int]`): Labels of audio files.
4949
feat_type (:obj:`str`, `optional`, defaults to `raw`):
50-
It identifies the feature type that user wants to extrace of an audio file.
50+
It identifies the feature type that user wants to extract of an audio file.
5151
"""
5252
super(AudioClassificationDataset, self).__init__()
5353

audio/paddleaudio/datasets/esc50.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(self,
117117
split (:obj:`int`, `optional`, defaults to 1):
118118
It specify the fold of dev dataset.
119119
feat_type (:obj:`str`, `optional`, defaults to `raw`):
120-
It identifies the feature type that user wants to extrace of an audio file.
120+
It identifies the feature type that user wants to extract of an audio file.
121121
"""
122122
files, labels = self._get_data(mode, split)
123123
super(ESC50, self).__init__(

audio/paddleaudio/datasets/gtzan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self,
6767
split (:obj:`int`, `optional`, defaults to 1):
6868
It specify the fold of dev dataset.
6969
feat_type (:obj:`str`, `optional`, defaults to `raw`):
70-
It identifies the feature type that user wants to extrace of an audio file.
70+
It identifies the feature type that user wants to extract of an audio file.
7171
"""
7272
assert split <= n_folds, f'The selected split should not be larger than n_fold, but got {split} > {n_folds}'
7373
files, labels = self._get_data(mode, seed, n_folds, split)

audio/paddleaudio/datasets/tess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self,
7676
split (:obj:`int`, `optional`, defaults to 1):
7777
It specify the fold of dev dataset.
7878
feat_type (:obj:`str`, `optional`, defaults to `raw`):
79-
It identifies the feature type that user wants to extrace of an audio file.
79+
It identifies the feature type that user wants to extract of an audio file.
8080
"""
8181
assert split <= n_folds, f'The selected split should not be larger than n_fold, but got {split} > {n_folds}'
8282
files, labels = self._get_data(mode, seed, n_folds, split)

audio/paddleaudio/datasets/urban_sound.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self,
6868
split (:obj:`int`, `optional`, defaults to 1):
6969
It specify the fold of dev dataset.
7070
feat_type (:obj:`str`, `optional`, defaults to `raw`):
71-
It identifies the feature type that user wants to extrace of an audio file.
71+
It identifies the feature type that user wants to extract of an audio file.
7272
"""
7373

7474
def _get_meta_info(self):

audio/paddleaudio/datasets/voxceleb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ def generate_csv(self,
262262
split_chunks: bool=True):
263263
print(f'Generating csv: {output_file}')
264264
header = ["id", "duration", "wav", "start", "stop", "spk_id"]
265-
# Note: this may occurs c++ execption, but the program will execute fine
266-
# so we can ignore the execption
265+
# Note: this may occurs c++ exception, but the program will execute fine
266+
# so we can ignore the exception
267267
with Pool(cpu_count()) as p:
268268
infos = list(
269269
tqdm(

0 commit comments

Comments
 (0)