Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created March 14, 2021 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AyishaR/688b4ebb8fba09eb211ff16f41283951 to your computer and use it in GitHub Desktop.
Save AyishaR/688b4ebb8fba09eb211ff16f41283951 to your computer and use it in GitHub Desktop.
max_length = 4 # length (in seconds) of input
desired_sr = 16000 # sampling rate to use
mic_sr = 16000 # rate supported by Sampling library like PDM
desired_samples = max_length*desired_sr # total number of samples in input
tf.random.set_seed(0)
np.random.seed(0)
os.environ['PYTHONHASHSEED'] = '0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment