-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Default to 1 thread to use as multithreading slows down on CPU
- Use sapply instead of for loop to loop over the windowed samples inside a with_no_grad chunk - Function silero no longer requires to provide the sample_rate, this is now extracted using audio::load.wave - Factor out the use of package av to only the examples - internally replaced with package audio
- Loading branch information
Showing
5 changed files
with
72 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#' @importFrom audio load.wave | ||
#' @importFrom torch torch_tensor jit_load jit_scalar autograd_set_grad_mode | ||
#' @importFrom torch torch_tensor jit_load jit_scalar autograd_set_grad_mode torch_float with_no_grad torch_set_num_threads | ||
NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.