Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kaldi-commonvoice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Will
kaldi-commonvoice
Commits
aa4e0a97
Commit
aa4e0a97
authored
8 years ago
by
Tom Ko
Browse files
Options
Downloads
Patches
Plain Diff
Adding more comments in wav-reverberate.cc
parent
a16f4373
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/featbin/wav-reverberate.cc
+15
-8
15 additions, 8 deletions
src/featbin/wav-reverberate.cc
with
15 additions
and
8 deletions
src/featbin/wav-reverberate.cc
+
15
−
8
View file @
aa4e0a97
...
...
@@ -139,9 +139,9 @@ int main(int argc, char *argv[]) {
"Usage: wav-reverberate [options...] <wav-in-rxfilename> "
"<wav-out-wxfilename>
\n
"
"e.g.
\n
"
"wav-reverberate --duration=
t
--impulse-response=rir.wav "
"--additive-signals='noise1.wav,noise2.wav' --snrs='
snr1,snr2
' "
"--start-times='
s1,s2
' input.wav output.wav
\n
"
;
"wav-reverberate --duration=
20.25
--impulse-response=rir.wav "
"--additive-signals='noise1.wav,noise2.wav' --snrs='
20.0,15.0
' "
"--start-times='
0,17.8
' input.wav output.wav
\n
"
;
ParseOptions
po
(
usage
);
std
::
string
rir_file
;
...
...
@@ -177,12 +177,18 @@ int main(int argc, char *argv[]) {
"Specifies the channel of the noise file, "
"it will only be used when multi-channel-output is false"
);
po
.
Register
(
"impulse-response"
,
&
rir_file
,
"File with the impulse response for reverberating the input wave"
);
"File with the impulse response for reverberating the input wave"
"It can be either a file in wav format or a piped command. "
"E.g. --impulse-response='rir.wav' or 'sox rir.wav - |' "
);
po
.
Register
(
"additive-signals"
,
&
additive_signals
,
"A comma separated list of additive signals"
);
"A comma separated list of additive signals. "
"They can be either filenames or piped commands. "
"E.g. --additive-signals='noise1.wav,noise2.wav' or "
"'sox noise1.wav - |,sox noise2.wav - |' "
);
po
.
Register
(
"snrs"
,
&
snrs
,
"A comma separated list of SNRs. The additive signals will be "
"scaled according to these SNRs."
);
"A comma separated list of SNRs(dB). "
"The additive signals will be scaled according to these SNRs. "
"E.g. --snrs='20.0,0.0,5.0,10.0' "
);
po
.
Register
(
"start-times"
,
&
start_times
,
"A comma separated list of start times referring to the "
"input signal. The additive signals will be added to the "
...
...
@@ -192,7 +198,8 @@ int main(int argc, char *argv[]) {
po
.
Register
(
"normalize-output"
,
&
normalize_output
,
"If true, then after reverberating and "
"possibly adding noise, scale so that the signal "
"energy is the same as the original input signal."
);
"energy is the same as the original input signal. "
"See also the --volume option."
);
po
.
Register
(
"duration"
,
&
duration
,
"If nonzero, it specified the duration (secs) of the output "
"signal. If the duration t is less than the length of the "
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment