Skip to content

Commit

Permalink
add keep_audio flag
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luan committed Jan 10, 2021
1 parent ffb6363 commit 577a75d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
master-v0.1-1-ga7bd83c
master-v0.1-rc1-0-gffb6363
7 changes: 7 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def main():
speed = [args.silent_speed if cs else args.speech_speed for cs in normalized]

pbs_writer(pbsFile, speed)

if(not args.keep_audio):
audioFile.unlink(missing_ok=True)

print(pbsFile)


Expand Down Expand Up @@ -124,5 +128,8 @@ def get_audio(videofile: Path, outfile: Path):
default=1.5,
type=float,
)
parser.add_argument(
"--keep_audio", help="Keep audio files generated.", action="store_true"
)
args = parser.parse_args()
main()

0 comments on commit 577a75d

Please sign in to comment.