How to Solve NameError: name 'split_on_silence' is not defined -- pydub
Solution: Import the 'split_on_silence' module
To Solve the error, add the following line to the top of your code.
from pydub.silence import split_on_silence
For more information:
Python pydub split_on_silence