readbeyond / aeneas

aeneas is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment)
http://www.readbeyond.it/aeneas/
GNU Affero General Public License v3.0
2.45k stars 218 forks source link

how to split wav in the middle of silence #211

Closed Jackiexiao closed 5 years ago

Jackiexiao commented 5 years ago

image

But I wish it could split in the middle of silence or at least add some silence at the begin and end of the wav like this one below:

image

sometimes there is some noise between two part of wavs

readbeyond commented 5 years ago

You can use the

task_adjust_boundary_algorithm=percent task_adjust_boundary_percent_value=50

configuration parameters for that, see:

https://www.readbeyond.it/aeneas/docs/clitutorial.html#listing-parameter-names-and-values

and:

https://www.readbeyond.it/aeneas/docs/adjustboundaryalgorithm.html

and there is also a built-in example, which you can execute with:

python -m aeneas.tools.execute_task --example-percent

Best regards,

Alberto Pettarin

On 08/16/2018 09:38 AM, 鉴津Jackie wrote:

image https://user-images.githubusercontent.com/18050469/44194907-09557180-a16a-11e8-81b9-51b21ad4a2e3.png

But I wish it could split in the middle of silence or at least add some silence at the begin and end of the wav like this one below:

image https://user-images.githubusercontent.com/18050469/44194969-415cb480-a16a-11e8-8ee4-7849be1568ba.png

Jackiexiao commented 5 years ago

thank you so much, actually, I read the document which you list above, but it's a hard time for me to figure out how these parameters work (:з」∠)_. thx again

Jackiexiao commented 5 years ago

I should run all examples first, thx !