Seriously, if you want usefull answers you should provide all the details you can get.

Ah well... I tell you this... there are two kinds of "silence". Digital absolute - there is nothing - silence and sound from let's say line-in or a mic and there is no real noise. The former is easy to ckeck and the latter needs to be some kind of fuzzy conditions. So instead of checking for a zero volume you check for let's say a volume wich is lower than 5% (or any other treshold).

Whenever the one or the other type occurs you set a marker and if it lasts for a specific timespan you found a pause/silence.

Are you using 8-bit samples? (Typically these days you use 16-bit audio samples)

You need to know the format you have configured for the audio source.

E.g. signed vs. unsigned (w. offset), 8 or 16 bit.

Then it is easy. for signed data silence is near 0, for unsigned data silence is near the middle of the range. Because of noise you will need to consider a band around the true silence value to be silence.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org