How to Solve NameError: name 'write' is not defined -- scipy

Solution: Import the 'write' module

To Solve the error, add the following line to the top of your code.

from scipy.io.wavfile import write

 

For more information:
Python scipy write